@ManagedResource(description="Managed ThrottlingExceptionRoutePolicy") public class ManagedThrottlingExceptionRoutePolicy extends ManagedService implements org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
| Constructor and Description |
|---|
ManagedThrottlingExceptionRoutePolicy(org.apache.camel.CamelContext context,
org.apache.camel.throttling.ThrottlingExceptionRoutePolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
String |
currentState() |
Integer |
getCurrentFailures() |
Integer |
getFailureThreshold() |
Long |
getFailureWindow() |
Long |
getHalfOpenAfter() |
String |
getHalfOpenHandlerName() |
Long |
getLastFailure() |
Long |
getOpenAt() |
org.apache.camel.throttling.ThrottlingExceptionRoutePolicy |
getPolicy() |
void |
setFailureThreshold(Integer numberOfFailures) |
void |
setFailureWindow(Long milliseconds) |
void |
setHalfOpenAfter(Long milliseconds) |
getCamelId, getCamelManagementName, getContext, getInstance, getRoute, getRouteId, getService, getServiceType, getState, init, isStaticService, isSupportSuspension, isSuspended, resume, setRoute, start, stop, suspendpublic ManagedThrottlingExceptionRoutePolicy(org.apache.camel.CamelContext context, org.apache.camel.throttling.ThrottlingExceptionRoutePolicy policy)
public org.apache.camel.throttling.ThrottlingExceptionRoutePolicy getPolicy()
public Long getHalfOpenAfter()
getHalfOpenAfter in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic void setHalfOpenAfter(Long milliseconds)
setHalfOpenAfter in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic Long getFailureWindow()
getFailureWindow in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic void setFailureWindow(Long milliseconds)
setFailureWindow in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic Integer getFailureThreshold()
getFailureThreshold in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic void setFailureThreshold(Integer numberOfFailures)
setFailureThreshold in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic String currentState()
currentState in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic String getHalfOpenHandlerName()
getHalfOpenHandlerName in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic Integer getCurrentFailures()
getCurrentFailures in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanpublic Long getLastFailure()
getLastFailure in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBeanApache Camel