public final class TimeSpec extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static TimeSpec |
DEFAULT_KEEPALIVE |
Constructor and Description |
---|
TimeSpec(TimeUnit unit,
long duration)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
elementHash() |
boolean |
equals(Object obj) |
boolean |
equals(TimeSpec obj) |
long |
getDuration()
Get the duration.
|
TimeUnit |
getUnit()
Get the time unit.
|
int |
hashCode() |
public static final TimeSpec DEFAULT_KEEPALIVE
public TimeSpec(TimeUnit unit, long duration)
unit
- the unit of timeduration
- the quantity of unitsCopyright © 2023 JBoss by Red Hat. All rights reserved.