R
- the return type of real-methodpublic class StatefulRetryHandler<R> extends Object implements BreakHandler<R>
Constructor and Description |
---|
StatefulRetryHandler() |
StatefulRetryHandler(int maxNumberOfAttempts) |
StatefulRetryHandler(int maxNumberOfAttempts,
RetryHandlerOnRetryCallback<R> onRetryCallback) |
Modifier and Type | Method and Description |
---|---|
R |
onBreak(ContextAwareCircuitBreaker<R> circuitBreaker,
Task<R> task,
BreakStrategy<R> breakStrategy,
ExecutionContext<R> executionContext) |
protected void |
onRetry(int currentRetryAttempt,
Task<R> task,
ExecutionContext<R> executionContext) |
public StatefulRetryHandler()
public StatefulRetryHandler(int maxNumberOfAttempts)
public StatefulRetryHandler(int maxNumberOfAttempts, RetryHandlerOnRetryCallback<R> onRetryCallback)
public R onBreak(ContextAwareCircuitBreaker<R> circuitBreaker, Task<R> task, BreakStrategy<R> breakStrategy, ExecutionContext<R> executionContext) throws TaskExecutionException, BreakHandlerException
protected void onRetry(int currentRetryAttempt, Task<R> task, ExecutionContext<R> executionContext)
Copyright © 2017. All rights reserved.