Package org.jboss.as.threads
Class TimeSpec
- java.lang.Object
-
- org.jboss.as.threads.TimeSpec
-
- All Implemented Interfaces:
Serializable
public final class TimeSpec extends Object implements Serializable
A specification of a simple duration.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TimeSpecDEFAULT_KEEPALIVE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longelementHash()booleanequals(Object obj)booleanequals(TimeSpec obj)longgetDuration()Get the duration.TimeUnitgetUnit()Get the time unit.inthashCode()
-
-
-
Field Detail
-
DEFAULT_KEEPALIVE
public static final TimeSpec DEFAULT_KEEPALIVE
-
-
Constructor Detail
-
TimeSpec
public TimeSpec(TimeUnit unit, long duration)
Construct a new instance.- Parameters:
unit- the unit of timeduration- the quantity of units
-
-