@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, suspend
public 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.ManagedThrottlingExceptionRoutePolicyMBean
public void setHalfOpenAfter(Long milliseconds)
setHalfOpenAfter
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public Long getFailureWindow()
getFailureWindow
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public void setFailureWindow(Long milliseconds)
setFailureWindow
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public Integer getFailureThreshold()
getFailureThreshold
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public void setFailureThreshold(Integer numberOfFailures)
setFailureThreshold
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public String currentState()
currentState
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public String getHalfOpenHandlerName()
getHalfOpenHandlerName
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public Integer getCurrentFailures()
getCurrentFailures
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
public Long getLastFailure()
getLastFailure
in interface org.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
Apache Camel