| Modifier and Type | Field and Description |
|---|---|
| private final long | maxTimeInMillis
The max amount of time to wait (in millis) before returning. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static MaxTimeTerminationStrategy | Returns: termination strategynumber of milliseconds maxTimeInMillis)Create a new termination strategy that allows up to the specified number of milliseconds to have elapsed before terminating. |
| public static MaxTimeTerminationStrategy | Returns: termination strategynumber of minutes maxTimeInMinutes)Create a new termination strategy that allows up to the specified number of minutes to have elapsed before terminating. |
| public static MaxTimeTerminationStrategy | Returns: termination strategynumber of seconds maxTimeInSeconds)Create a new termination strategy that allows up to the specified number of seconds to have elapsed before terminating. |
| public static MaxTimeTerminationStrategy | Returns: termination strategynumber of time units maxTime, final TimeUnit time unit timeUnit)Create a new termination strategy that allows up to the specified number of time units to have elapsed before terminating. |
| public boolean | shouldTerminate(WaiterConfiguration.
The context after the last poll attempt. contextImplements com. Returns whether or not polling should be terminated. |
| maxTimeInMillis | back to summary |
|---|---|
| private final long maxTimeInMillis The max amount of time to wait (in millis) before returning. | |
| MaxTimeTerminationStrategy | back to summary |
|---|---|
public MaxTimeTerminationStrategy(final long maxTimeInMillis)
| |
| ofMillis | back to summary |
|---|---|
| public static MaxTimeTerminationStrategy ofMillis(final long maxTimeInMillis) Create a new termination strategy that allows up to the specified number of milliseconds to have elapsed before terminating.
| |
| ofMinutes | back to summary |
|---|---|
| public static MaxTimeTerminationStrategy ofMinutes(final long maxTimeInMinutes) Create a new termination strategy that allows up to the specified number of minutes to have elapsed before terminating.
| |
| ofSeconds | back to summary |
|---|---|
| public static MaxTimeTerminationStrategy ofSeconds(final long maxTimeInSeconds) Create a new termination strategy that allows up to the specified number of seconds to have elapsed before terminating.
| |
| ofTimeUnit | back to summary |
|---|---|
| public static MaxTimeTerminationStrategy ofTimeUnit(final long maxTime, final TimeUnit timeUnit) Create a new termination strategy that allows up to the specified number of time units to have elapsed before terminating.
| |
| shouldTerminate | back to summary |
|---|---|
| public boolean shouldTerminate(WaiterConfiguration. Implements com. Doc from com. Returns whether or not polling should be terminated.
| |