long time and TimeUnit.
| Modifier and Type | Field and Description |
|---|---|
| public static final Timeout | DISABLED
A disabled timeout represented as 0 |
| public static final Timeout | ONE_MILLISECOND
A one milliseconds |
| public static final Timeout | ZERO_MILLISECONDS
Hides org. Timeout.
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Timeout | defaultsToDisabled(final Timeout
may be timeout)nullReturns the given |
| public boolean | |
| public boolean | |
| public static Timeout | |
| public static Timeout | |
| public static Timeout | Returns: a Timeoutthe duration in days and the given days)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in hours and the given hours)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in seconds and the given microseconds)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in milliseconds and the given milliseconds)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in minutes and the given minutes)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in seconds and the given nanoseconds)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a Timeoutthe duration in seconds and the given seconds)
Creates a Timeout.
timeUnit. |
| public static Timeout | Returns: a new TimeValuethe TimeValue to parse value)Hides org. <Integer><SPACE><TimeUnit>, for example "1,200 MILLISECONDS"
|
| DISABLED | back to summary |
|---|---|
| public static final Timeout DISABLED A disabled timeout represented as 0 | |
| ONE_MILLISECOND | back to summary |
|---|---|
| public static final Timeout ONE_MILLISECOND A one milliseconds | |
| ZERO_MILLISECONDS | back to summary |
|---|---|
| public static final Timeout ZERO_MILLISECONDS Hides org. A zero milliseconds | |
| Timeout | back to summary |
|---|---|
| pack-priv Timeout(final long duration, final TimeUnit timeUnit) | |
| defaultsToDisabled | back to summary |
|---|---|
| public static Timeout defaultsToDisabled(final Timeout timeout) Returns the given | |
| isDisabled | back to summary |
|---|---|
| public boolean isDisabled() Whether this timeout is disabled.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Whether this timeout is enabled.
| |
| of | back to summary |
|---|---|
| public static Timeout of(final Duration duration) Hides org. Creates a Timeout from a Duration. | |
| of | back to summary |
|---|---|
| public static Timeout of(final long duration, final TimeUnit timeUnit) Hides org. Creates a Timeout. | |
| ofDays | back to summary |
|---|---|
| public static Timeout ofDays(final long days) Hides org. Creates a Timeout.
| |
| ofHours | back to summary |
|---|---|
| public static Timeout ofHours(final long hours) Hides org. Creates a Timeout.
| |
| ofMicroseconds | back to summary |
|---|---|
| public static Timeout ofMicroseconds(final long microseconds) Hides org. Creates a Timeout.
| |
| ofMilliseconds | back to summary |
|---|---|
| public static Timeout ofMilliseconds(final long milliseconds) Hides org. Creates a Timeout.
| |
| ofMinutes | back to summary |
|---|---|
| public static Timeout ofMinutes(final long minutes) Hides org. Creates a Timeout.
| |
| ofNanoseconds | back to summary |
|---|---|
| public static Timeout ofNanoseconds(final long nanoseconds) Hides org. Creates a Timeout.
| |
| ofSeconds | back to summary |
|---|---|
| public static Timeout ofSeconds(final long seconds) Hides org. Creates a Timeout.
| |
| parse | back to summary |
|---|---|
| public static Timeout parse(final String value) throws ParseException Hides org. Parses a Timeout in the format
| |