org.apache.camel.model
Class ThrottlerType
java.lang.Object
org.apache.camel.model.ProcessorType
org.apache.camel.model.ThrottlerType
public class ThrottlerType
- extends ProcessorType
- Version:
- $Revision: 1.1 $
Methods inherited from class org.apache.camel.model.ProcessorType |
addOutput, addRoutes, aggregator, aggregator, beanRef, beanRef, choice, configureChild, convertBodyTo, convertOutBodyTo, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delayer, delayer, delayer, errorHandler, exception, filter, filter, filter, getErrorHandlerBuilder, getInheritErrorHandlerFlag, idempotentConsumer, inheritErrorHandler, intercept, intercept, intercept, interceptor, interceptors, isInheritErrorHandler, makeProcessor, multicast, pipeline, pipeline, pipeline, policies, policy, proceed, process, recipientList, resequencer, resequencer, resequencer, setBody, setErrorHandlerBuilder, setHeader, setInheritErrorHandlerFlag, setOutBody, setOutHeader, setProperty, splitter, throttler, to, to, to, to, to, trace, trace, tryBlock, wrapInErrorHandler, wrapProcessor, wrapProcessorInInterceptors |
ThrottlerType
public ThrottlerType()
ThrottlerType
public ThrottlerType(long maximumRequestsPerPeriod)
toString
public String toString()
- Overrides:
toString
in class Object
createProcessor
public Processor createProcessor(RouteContext routeContext)
throws Exception
- Overrides:
createProcessor
in class ProcessorType
- Throws:
Exception
timePeriodMillis
public ThrottlerType timePeriodMillis(long timePeriodMillis)
- Sets the time period during which the maximum request count is valid for
getMaximumRequestsPerPeriod
public Long getMaximumRequestsPerPeriod()
setMaximumRequestsPerPeriod
public void setMaximumRequestsPerPeriod(Long maximumRequestsPerPeriod)
getTimePeriodMillis
public long getTimePeriodMillis()
setTimePeriodMillis
public void setTimePeriodMillis(long timePeriodMillis)
getInterceptors
public List<InterceptorType> getInterceptors()
- Specified by:
getInterceptors
in class ProcessorType
setInterceptors
public void setInterceptors(List<InterceptorType> interceptors)
getOutputs
public List<ProcessorType> getOutputs()
- Specified by:
getOutputs
in class ProcessorType
setOutputs
public void setOutputs(List<ProcessorType> outputs)
Copyright © 2007 Apache Software Foundation. All Rights Reserved.