public interface RetryPolicy
attemptRetry()
. Because
of this, its best to put retries in do/while loops to avoid the first wait.
This interface is not thread safe and as such should only ever be used from one thread.Modifier and Type | Method and Description |
---|---|
boolean |
attemptRetry()
Attempts to run the given operation, returning false if unable to (max retries have happened).
|
int |
getRetryCount()
How many retries have been performed.
|
Copyright © 2015. All Rights Reserved.