public class RequestHandlerCircuitBreakerAdvice extends AbstractRequestHandlerAdvice
AbstractRequestHandlerAdvice.ExecutionCallback
logger
Constructor and Description |
---|
RequestHandlerCircuitBreakerAdvice() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback,
java.lang.Object target,
Message<?> message)
Subclasses implement this method to apply behavior to the
MessageHandler . |
void |
setHalfOpenAfter(long halfOpenAfter) |
void |
setThreshold(int threshold) |
invoke, unwrapExceptionIfNecessary, unwrapThrowableIfNecessary
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public void setThreshold(int threshold)
public void setHalfOpenAfter(long halfOpenAfter)
protected java.lang.Object doInvoke(AbstractRequestHandlerAdvice.ExecutionCallback callback, java.lang.Object target, Message<?> message) throws java.lang.Exception
AbstractRequestHandlerAdvice
MessageHandler
.
callback.execute() invokes the handler method and returns its result, or null.
doInvoke
in class AbstractRequestHandlerAdvice
callback
- Subclasses invoke the execute() method on this interface to invoke the handler method.target
- The target handler.message
- The message that will be sent to the handler.MessageHandler
.java.lang.Exception