R
- the return type of produced StatefulRetryHandler
which equals to the return type of
target-method which is executed by circuit breaker.public class ReusableRetryHandler<R> extends Object implements OnePerExecutionHandlerFactory<R>
Constructor and Description |
---|
ReusableRetryHandler(int maxNumberOfAttempts) |
Modifier and Type | Method and Description |
---|---|
BreakHandler<R> |
createNewHandler(Task<R> task,
ExecutionContext<R> executionContext) |
String |
getOnePerExecutionContextParamName(Task<R> task,
ExecutionContext<R> executionContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeHandler
onBreak
public BreakHandler<R> createNewHandler(Task<R> task, ExecutionContext<R> executionContext)
public String getOnePerExecutionContextParamName(Task<R> task, ExecutionContext<R> executionContext)
Copyright © 2017. All rights reserved.