Interface ManagedThrottlingExceptionRoutePolicyMBean
- All Superinterfaces:
ManagedServiceMBean
-
Method Summary
Modifier and TypeMethodDescriptionString[]
void
setFailureThreshold
(Integer numberOfFailures) void
setFailureWindow
(Long milliseconds) void
setHalfOpenAfter
(Long milliseconds) Methods inherited from interface org.apache.camel.api.management.mbean.ManagedServiceMBean
getCamelId, getCamelManagementName, getRouteId, getServiceType, getState, isStaticService, isSupportSuspension, isSuspended, resume, start, stop, suspend
-
Method Details
-
getExceptionTypes
@ManagedAttribute(description="The class of the exception to throttle") String[] getExceptionTypes() -
getHalfOpenAfter
@ManagedAttribute(description="How long to wait before moving open circuit to half open") Long getHalfOpenAfter() -
setHalfOpenAfter
@ManagedAttribute(description="How long to wait before moving open circuit to half open") void setHalfOpenAfter(Long milliseconds) -
getFailureWindow
@ManagedAttribute(description="The range of time that failures should occur within") Long getFailureWindow() -
setFailureWindow
@ManagedAttribute(description="The range of time that failures should occur within") void setFailureWindow(Long milliseconds) -
getFailureThreshold
@ManagedAttribute(description="Number of failures before opening circuit") Integer getFailureThreshold() -
setFailureThreshold
@ManagedAttribute(description="Number of failures before opening circuit") void setFailureThreshold(Integer numberOfFailures) -
currentState
-
getHalfOpenHandlerName
@ManagedAttribute(description="The half open handler registered (if any)") String getHalfOpenHandlerName() -
getCurrentFailures
-
getLastFailure
@ManagedAttribute(description="Number of ms since the last failure was recorded") Long getLastFailure() -
getOpenAt
-