|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<ProcessorDefinition>
org.apache.camel.model.ThrottleDefinition
public class ThrottleDefinition
Represents an XML <throttle/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
ThrottleDefinition()
|
|
ThrottleDefinition(long maximumRequestsPerPeriod)
|
|
| Method Summary | |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
Long |
getMaximumRequestsPerPeriod()
|
List<ProcessorDefinition> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
long |
getTimePeriodMillis()
|
ThrottleDefinition |
maximumRequestsPerPeriod(Long maximumRequestsPerPeriod)
Sets the time period during which the maximum request count per period |
void |
setMaximumRequestsPerPeriod(Long maximumRequestsPerPeriod)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
void |
setTimePeriodMillis(long timePeriodMillis)
|
ThrottleDefinition |
timePeriodMillis(long timePeriodMillis)
Sets the time period during which the maximum request count is valid for |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThrottleDefinition()
public ThrottleDefinition(long maximumRequestsPerPeriod)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ProcessorDefinition>public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ProcessorDefinition>
public Processor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<ProcessorDefinition>Exceptionpublic ThrottleDefinition timePeriodMillis(long timePeriodMillis)
timePeriodMillis - period in millis
public ThrottleDefinition maximumRequestsPerPeriod(Long maximumRequestsPerPeriod)
maximumRequestsPerPeriod - the maximum request count number per time period
public Long getMaximumRequestsPerPeriod()
public void setMaximumRequestsPerPeriod(Long maximumRequestsPerPeriod)
public long getTimePeriodMillis()
public void setTimePeriodMillis(long timePeriodMillis)
public List<ProcessorDefinition> getOutputs()
getOutputs in class ProcessorDefinition<ProcessorDefinition>public void setOutputs(List<ProcessorDefinition> outputs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||