Class ManagedThrottlingExceptionRoutePolicy
- java.lang.Object
-
- org.apache.camel.management.mbean.ManagedService
-
- org.apache.camel.management.mbean.ManagedThrottlingExceptionRoutePolicy
-
- All Implemented Interfaces:
org.apache.camel.api.management.ManagedInstance,org.apache.camel.api.management.mbean.ManagedServiceMBean,org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
@ManagedResource(description="Managed ThrottlingExceptionRoutePolicy") public class ManagedThrottlingExceptionRoutePolicy extends ManagedService implements org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
-
Constructor Summary
Constructors Constructor Description ManagedThrottlingExceptionRoutePolicy(org.apache.camel.CamelContext context, org.apache.camel.throttling.ThrottlingExceptionRoutePolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcurrentState()IntegergetCurrentFailures()IntegergetFailureThreshold()LonggetFailureWindow()LonggetHalfOpenAfter()StringgetHalfOpenHandlerName()LonggetLastFailure()LonggetOpenAt()org.apache.camel.throttling.ThrottlingExceptionRoutePolicygetPolicy()voidsetFailureThreshold(Integer numberOfFailures)voidsetFailureWindow(Long milliseconds)voidsetHalfOpenAfter(Long milliseconds)-
Methods inherited from class org.apache.camel.management.mbean.ManagedService
getCamelId, getCamelManagementName, getContext, getInstance, getRoute, getRouteId, getService, getServiceType, getState, init, isStaticService, isSupportSuspension, isSuspended, resume, setRoute, start, stop, suspend
-
-
-
-
Constructor Detail
-
ManagedThrottlingExceptionRoutePolicy
public ManagedThrottlingExceptionRoutePolicy(org.apache.camel.CamelContext context, org.apache.camel.throttling.ThrottlingExceptionRoutePolicy policy)
-
-
Method Detail
-
getPolicy
public org.apache.camel.throttling.ThrottlingExceptionRoutePolicy getPolicy()
-
getHalfOpenAfter
public Long getHalfOpenAfter()
- Specified by:
getHalfOpenAfterin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setHalfOpenAfter
public void setHalfOpenAfter(Long milliseconds)
- Specified by:
setHalfOpenAfterin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getFailureWindow
public Long getFailureWindow()
- Specified by:
getFailureWindowin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setFailureWindow
public void setFailureWindow(Long milliseconds)
- Specified by:
setFailureWindowin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getFailureThreshold
public Integer getFailureThreshold()
- Specified by:
getFailureThresholdin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setFailureThreshold
public void setFailureThreshold(Integer numberOfFailures)
- Specified by:
setFailureThresholdin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
currentState
public String currentState()
- Specified by:
currentStatein interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getHalfOpenHandlerName
public String getHalfOpenHandlerName()
- Specified by:
getHalfOpenHandlerNamein interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getCurrentFailures
public Integer getCurrentFailures()
- Specified by:
getCurrentFailuresin interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getLastFailure
public Long getLastFailure()
- Specified by:
getLastFailurein interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
-