Class Retryable<T>
- java.lang.Object
-
- org.ovirt.vdsm.jsonrpc.client.utils.retry.Retryable<T>
-
- Type Parameters:
T
- Result type.
- All Implemented Interfaces:
java.util.concurrent.Callable<T>
public class Retryable<T> extends java.lang.Object implements java.util.concurrent.Callable<T>
Wrapper of anyCallable
which retries call method execution based on providedRetryPolicy
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Callable<T>
callable
private RetryContext
context
private static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description Retryable(java.util.concurrent.Callable<T> callable, ClientPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
call()
-
-
-
Field Detail
-
log
private static org.slf4j.Logger log
-
callable
private java.util.concurrent.Callable<T> callable
-
context
private RetryContext context
-
-
Constructor Detail
-
Retryable
public Retryable(java.util.concurrent.Callable<T> callable, ClientPolicy policy)
-
-