Class RetryContext
- java.lang.Object
-
- org.ovirt.vdsm.jsonrpc.client.utils.retry.RetryContext
-
public class RetryContext extends java.lang.ObjectRetryConextrepresents current execution retry state. Initially context is populated form theRetryPolicyprovided for the execution.
-
-
Constructor Summary
Constructors Constructor Description RetryContext(ClientPolicy policy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecreaseAttempts()intgetNumberOfAttempts()intgetTimeout()java.util.concurrent.TimeUnitgetTimeUnit()booleanisExceptionRetryable(java.lang.Exception e)voidwaitOperation()
-
-
-
Constructor Detail
-
RetryContext
public RetryContext(ClientPolicy policy)
-
-
Method Detail
-
isExceptionRetryable
public boolean isExceptionRetryable(java.lang.Exception e)
-
getNumberOfAttempts
public int getNumberOfAttempts()
-
waitOperation
public void waitOperation() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
getTimeout
public int getTimeout()
-
getTimeUnit
public java.util.concurrent.TimeUnit getTimeUnit()
-
decreaseAttempts
public void decreaseAttempts()
-
-