public interface Attempt
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getAttemptNumber()
The number, starting from 1, of this attempt.
|
long |
getDelaySinceFirstAttempt()
The delay since the start of the first attempt, in milliseconds.
|
Throwable |
getExceptionCause()
Gets the exception thrown by the call
|
boolean |
hasException()
Tells if the call threw an exception or not
|
long getAttemptNumber()
boolean hasException()
true if the call threw an exception, false
if it returned a resultThrowable getExceptionCause()
IllegalStateException - if the call didn't throw an exception,
as indicated by hasException()long getDelaySinceFirstAttempt()
Copyright © 2019. All rights reserved.