Package com.infilos.retry.execute
Class RetrySyncExecutor<T>
- java.lang.Object
-
- com.infilos.retry.execute.RetrySyncExecutor<T>
-
- Type Parameters:
T
- The type that is returned by the Callable (eg: Boolean, Void, Object, etc)
- All Implemented Interfaces:
RetryExecutor<T,RetryStatus<T>>
,Loggable
public class RetrySyncExecutor<T> extends Object implements RetryExecutor<T,RetryStatus<T>>, Loggable
Default implementation that does a single, synchronous retry in the same thread that it is called from.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.infilos.utils.Loggable
Loggable.Level
-
-
Constructor Summary
Constructors Constructor Description RetrySyncExecutor(RetryConfig<T> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryStatus<T>
execute(Callable<T> callable)
RetryStatus<T>
execute(Callable<T> callable, String operation)
RetryConfig<T>
getConfig()
String
toString()
-
-
-
Constructor Detail
-
RetrySyncExecutor
public RetrySyncExecutor(RetryConfig<T> config)
-
-
Method Detail
-
execute
public RetryStatus<T> execute(Callable<T> callable)
- Specified by:
execute
in interfaceRetryExecutor<T,RetryStatus<T>>
-
execute
public RetryStatus<T> execute(Callable<T> callable, String operation)
- Specified by:
execute
in interfaceRetryExecutor<T,RetryStatus<T>>
-
getConfig
public RetryConfig<T> getConfig()
-
-