|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Client.StoppableThread
A class that represents a thread that can be requested to stop. It is vital that inheriting classes will poll on stopRequested() variable for stop requests, to implement that functionality.
Field Summary | |
private boolean |
stopRequested
predicate for stop requestes. |
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
StoppableThread()
|
Method Summary | |
void |
requestStop(java.lang.Object o)
Request a stop. |
boolean |
stopRequested()
A predicate method that returns whether stop has been requested |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean stopRequested
Constructor Detail |
public StoppableThread()
Method Detail |
public void requestStop(java.lang.Object o)
public boolean stopRequested()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |