org.apache.camel.management.mbean
Class ManagedThrottler

java.lang.Object
  extended by org.apache.camel.management.mbean.ManagedCounter
      extended by org.apache.camel.management.mbean.ManagedPerformanceCounter
          extended by org.apache.camel.management.mbean.ManagedProcessor
              extended by org.apache.camel.management.mbean.ManagedThrottler
All Implemented Interfaces:
ManagedInstance, PerformanceCounter

@ManagedResource(description="Managed Throttler")
public class ManagedThrottler
extends ManagedProcessor

Version:

Field Summary
 
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal
 
Constructor Summary
ManagedThrottler(CamelContext context, Throttler throttler, ProcessorDefinition<?> definition)
           
 
Method Summary
 long getMaximumRequestsPerPeriod()
           
 Throttler getThrottler()
           
 long getTimePeriodMillis()
           
 void setMaximumRequestsPerPeriod(long maximumRequestsPerPeriod)
           
 void setTimePeriodMillis(long timePeriodMillis)
           
 
Methods inherited from class org.apache.camel.management.mbean.ManagedProcessor
getCamelId, getContext, getDefinition, getInstance, getProcessor, getProcessorId, getRoute, getRouteId, getState, setRoute, start, stop
 
Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
completedExchange, failedExchange, getExchangesCompleted, getExchangesFailed, getFailuresHandled, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureTimestamp, getLastExchangeCompletedTimestamp, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, init, isStatisticsEnabled, reset, setStatisticsEnabled
 
Methods inherited from class org.apache.camel.management.mbean.ManagedCounter
getExchangesTotal, increment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedThrottler

public ManagedThrottler(CamelContext context,
                        Throttler throttler,
                        ProcessorDefinition<?> definition)
Method Detail

getThrottler

public Throttler getThrottler()

getMaximumRequestsPerPeriod

@ManagedAttribute(description="Maximum requires per period")
public long getMaximumRequestsPerPeriod()

setMaximumRequestsPerPeriod

@ManagedAttribute(description="Maximum requires per period")
public void setMaximumRequestsPerPeriod(long maximumRequestsPerPeriod)

getTimePeriodMillis

@ManagedAttribute(description="Time period in millis")
public long getTimePeriodMillis()

setTimePeriodMillis

@ManagedAttribute(description="Time period in millis")
public void setTimePeriodMillis(long timePeriodMillis)


Apache CAMEL