java.lang.Object
de.grogra.util.ThreadContext
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptioncheck()
void
static ThreadContext
current()
int
getId()
short
getProperty
(int propertyId) boolean
boolean
void
join()
void
void
leave()
static int
void
setPriority
(short priority) void
setProperty
(int propertyId, Object value)
-
Field Details
-
MIN_PRIORITY
public static final short MIN_PRIORITY- See Also:
-
NORMAL_PRIORITY
public static final short NORMAL_PRIORITY- See Also:
-
MAX_PRIORITY
public static final short MAX_PRIORITY- See Also:
-
-
Method Details
-
getId
public int getId() -
current
-
isCurrent
public boolean isCurrent() -
getThread
-
check
-
registerProperty
public static int registerProperty() -
getProperty
-
setProperty
-
checkInterruption
- Throws:
InterruptedException
-
join
public void join() -
leave
public void leave() -
joinWhileExecuting
-
hasHigherPriorityThan
-
getPriority
public short getPriority() -
setPriority
public void setPriority(short priority)
-