public static final class DurationSpec.LongMillisecondsBound extends DurationSpec
DurationSpec.IntMillisecondsBound, DurationSpec.IntMinutesBound, DurationSpec.IntSecondsBound, DurationSpec.LongMillisecondsBound, DurationSpec.LongNanosecondsBound, DurationSpec.LongSecondsBound
Constructor and Description |
---|
LongMillisecondsBound(long milliseconds)
Creates a
DurationSpec.LongMillisecondsBound of the specified amount in milliseconds. |
LongMillisecondsBound(long quantity,
java.util.concurrent.TimeUnit unit)
Creates a
DurationSpec.LongMillisecondsBound of the specified amount in the specified unit. |
LongMillisecondsBound(java.lang.String value)
Creates a
DurationSpec.LongMillisecondsBound of the specified amount. |
Modifier and Type | Method and Description |
---|---|
long |
toMilliseconds() |
public LongMillisecondsBound(java.lang.String value)
DurationSpec.LongMillisecondsBound
of the specified amount.
The bound is [0, Long.MAX_VALUE) in milliseconds.value
- the durationpublic LongMillisecondsBound(long quantity, java.util.concurrent.TimeUnit unit)
DurationSpec.LongMillisecondsBound
of the specified amount in the specified unit.
The bound is [0, Long.MAX_VALUE) in milliseconds.quantity
- where quantity shouldn't be bigger than Long.MAX_VALUE - 1 in millisecondsunit
- in which the provided quantity ispublic LongMillisecondsBound(long milliseconds)
DurationSpec.LongMillisecondsBound
of the specified amount in milliseconds.
The bound is [0, Long.MAX_VALUE) in milliseconds.milliseconds
- where milliseconds shouldn't be bigger than Long.MAX_VALUE-1Copyright © 2009- The Apache Software Foundation