| java.lang.Object demo.sharedqueue.Worker
expire | final public synchronized boolean expire()(Code) | | Attempt to mark the Worker as dead (if it's already dying); Note that we
synchronize this method since it's mutating a shared object (this class)
True if the Worker is dead. |
markForExpiration | final public synchronized void markForExpiration()(Code) | | Set the state of the Worker's health to dying; Note that we synchronize
this method since it's mutating a shared object (this class)
Parameters: health - |
run | final public void run()(Code) | | |
|
|