| Modifier and Type | Class and Description |
|---|---|
| public static class | WaiterConfiguration.
The context that should be maintained by the wait loop. |
| Modifier and Type | Field and Description |
|---|---|
| private final DelayStrategy | |
| private final TerminationStrategy |
| Access | Constructor and Description |
|---|---|
| public | WaiterConfiguration(final TerminationStrategy terminationStrategy, final DelayStrategy delayStrategy)
|
| Modifier and Type | Method and Description |
|---|---|
| public DelayStrategy | |
| public TerminationStrategy | |
| public String |
| delayStrategy | back to summary |
|---|---|
| private final DelayStrategy delayStrategy | |
| terminationStrategy | back to summary |
|---|---|
| private final TerminationStrategy terminationStrategy | |
| WaiterConfiguration | back to summary |
|---|---|
public WaiterConfiguration(final TerminationStrategy terminationStrategy, final DelayStrategy delayStrategy)
| |
| getDelayStrategy | back to summary |
|---|---|
| public DelayStrategy getDelayStrategy() | |
| getTerminationStrategy | back to summary |
|---|---|
| public TerminationStrategy getTerminationStrategy() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private int | attemptsMade
The number of attempts that have been made so far. |
| private long | currentTime
The current time (ex, System.currentTimeMillis()). |
| private final long | startTime
The time the polling starting (ex, System.currentTimeMillis()). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public long | |
| public long | |
| public void | |
| pack-priv void | |
| public String |
| attemptsMade | back to summary |
|---|---|
| private int attemptsMade The number of attempts that have been made so far. | |
| currentTime | back to summary |
|---|---|
| private long currentTime The current time (ex, System.currentTimeMillis()). Exposed for tests. | |
| startTime | back to summary |
|---|---|
| private final long startTime The time the polling starting (ex, System.currentTimeMillis()). | |
| WaitContext | back to summary |
|---|---|
| public WaitContext(long startTime) | |
| getAttemptsMade | back to summary |
|---|---|
| public int getAttemptsMade() | |
| getCurrentTime | back to summary |
|---|---|
| public long getCurrentTime() | |
| getStartTime | back to summary |
|---|---|
| public long getStartTime() | |
| incrementAttempts | back to summary |
|---|---|
| public void incrementAttempts() Increments the number of attempts made. | |
| setCurrentTime | back to summary |
|---|---|
| pack-priv void setCurrentTime(long currentTime) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |