public class ReaperElement extends Object implements Comparable<ReaperElement>
Modifier and Type | Field and Description |
---|---|
Reapable |
_control |
int |
_status |
int |
_timeout |
Thread |
_worker |
static int |
CANCEL |
static int |
CANCEL_INTERRUPTED |
static int |
COMPLETE |
static int |
FAIL |
static int |
RUN |
static int |
SCHEDULE_CANCEL |
static int |
ZOMBIE |
Constructor and Description |
---|
ReaperElement(Reapable control,
int timeout) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReaperElement other)
Order by absoluteTimeout first, then by Uid.
|
boolean |
equals(Object o) |
long |
getAbsoluteTimeout()
Returns absolute timeout in milliseconds
|
int |
hashCode() |
void |
setAbsoluteTimeout(long absoluteTimeout)
Sets the absolute timeout.
|
String |
statusName() |
String |
toString() |
public final Reapable _control
public int _timeout
public int _status
public Thread _worker
public static final int RUN
public static final int SCHEDULE_CANCEL
public static final int CANCEL
public static final int CANCEL_INTERRUPTED
public static final int FAIL
public static final int COMPLETE
public static final int ZOMBIE
public ReaperElement(Reapable control, int timeout)
public int compareTo(ReaperElement other)
compareTo
in interface Comparable<ReaperElement>
other
- the ReaperElement to comparepublic final String statusName()
public long getAbsoluteTimeout()
public void setAbsoluteTimeout(long absoluteTimeout)
absoluteTimeout
- value in millisecondsCopyright © 2021 JBoss by Red Hat. All rights reserved.