Class RetryContext
java.lang.Object
org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryContext
RetryConext represents current execution retry
state. Initially context is populated form the RetryPolicy
provided for the execution.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintbooleanvoid
-
Field Details
-
numberOfAttempts
private int numberOfAttempts -
timeout
private int timeout -
policy
-
-
Constructor Details
-
RetryContext
-
-
Method Details
-
isExceptionRetryable
-
getNumberOfAttempts
public int getNumberOfAttempts() -
waitOperation
- Throws:
InterruptedException
-
getTimeout
public int getTimeout() -
getTimeUnit
-
decreaseAttempts
public void decreaseAttempts()
-