| 构造器和说明 |
|---|
DefaultAttempt(long attemptNumber,
long startTime,
long lastEndTime,
Throwable cause) |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
public long getAttemptNumber()
AttemptgetAttemptNumber 在接口中 Attemptpublic boolean hasException()
AttempthasException 在接口中 Attempttrue if the call threw an exception, false
if it returned a resultpublic Throwable getExceptionCause()
AttemptgetExceptionCause 在接口中 Attemptpublic long getDelaySinceFirstAttempt()
AttemptgetDelaySinceFirstAttempt 在接口中 AttemptCopyright © 2019. All rights reserved.