org.curjent.impl.agent
Class Util
java.lang.Object
org.curjent.impl.agent.Util
final class Util
- extends Object
Collection of utility methods.
Constructor Summary |
private |
Util()
Static methods only. |
Method Summary |
(package private) static long |
nanos(long value,
TimeUnit unit,
long min)
Converts a timeout value to nanoseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
private Util()
- Static methods only.
nanos
static long nanos(long value,
TimeUnit unit,
long min)
- Converts a timeout value to nanoseconds.
- Throws:
IllegalArgumentException
- value
is less than
min
.
NullPointerException
- unit
is required but
null
. unit
is optional and may be
null
if timeout
is 0
or
Long.MAX_VALUE
.
Copyright 2009-2011 Tom Landon
Apache License 2.0