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 anyCallablewhich retries call method execution based on providedRetryPolicy.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Callable<T>callableprivate RetryContextcontextprivate static org.slf4j.Loggerlog
-
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 Tcall()
-
-
-
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)
-
-