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