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 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)
-
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:
getHalfOpenAfter
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setHalfOpenAfter
public void setHalfOpenAfter(Long milliseconds)
- Specified by:
setHalfOpenAfter
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getFailureWindow
public Long getFailureWindow()
- Specified by:
getFailureWindow
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setFailureWindow
public void setFailureWindow(Long milliseconds)
- Specified by:
setFailureWindow
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getFailureThreshold
public Integer getFailureThreshold()
- Specified by:
getFailureThreshold
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
setFailureThreshold
public void setFailureThreshold(Integer numberOfFailures)
- Specified by:
setFailureThreshold
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
currentState
public String currentState()
- Specified by:
currentState
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getHalfOpenHandlerName
public String getHalfOpenHandlerName()
- Specified by:
getHalfOpenHandlerName
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getCurrentFailures
public Integer getCurrentFailures()
- Specified by:
getCurrentFailures
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
getLastFailure
public Long getLastFailure()
- Specified by:
getLastFailure
in interfaceorg.apache.camel.api.management.mbean.ManagedThrottlingExceptionRoutePolicyMBean
-
-