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 TimeSpec
DEFAULT_KEEPALIVE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
elementHash()
boolean
equals(Object obj)
boolean
equals(TimeSpec obj)
long
getDuration()
Get the duration.TimeUnit
getUnit()
Get the time unit.int
hashCode()
-
-
-
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
-
-