java.lang.Object
de.grogra.util.ThreadContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final short -
Method Summary
Modifier and TypeMethodDescriptioncheck()voidstatic ThreadContextcurrent()intgetId()shortgetProperty(int propertyId) booleanbooleanvoidjoin()voidvoidleave()static intvoidsetPriority(short priority) voidsetProperty(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)
-