public class RetryContext extends Object
RetryConext represents current execution retry
state. Initially context is populated form the RetryPolicy
provided for the execution.| Constructor and Description |
|---|
RetryContext(ClientPolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
void |
decreaseAttempts() |
int |
getNumberOfAttempts() |
int |
getTimeout() |
TimeUnit |
getTimeUnit() |
boolean |
isExceptionRetryable(Exception e) |
void |
waitOperation() |
public RetryContext(ClientPolicy policy)
public boolean isExceptionRetryable(Exception e)
public int getNumberOfAttempts()
public void waitOperation()
throws InterruptedException
InterruptedExceptionpublic int getTimeout()
public TimeUnit getTimeUnit()
public void decreaseAttempts()
Copyright © 2018. All Rights Reserved.