|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.storage.lock.WaitingThread
public class WaitingThread
Wraps around a thread in order to be able to suspend it completely while it is waiting for a lock.
Constructor Summary | |
---|---|
WaitingThread(Thread thread,
Object monitor,
MultiReadReentrantLock lock,
int lockType)
|
Method Summary | |
---|---|
void |
doWait()
Start waiting on the monitor object. |
boolean |
equals(Object obj)
|
Lock |
getLock()
|
int |
getLockType()
|
Thread |
getThread()
|
boolean |
isSuspended()
|
void |
lockReleased()
Wake the thread from suspended mode. |
void |
signalDeadlock()
|
void |
suspendWaiting()
Put the thread into suspended mode, i.e. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WaitingThread(Thread thread, Object monitor, MultiReadReentrantLock lock, int lockType)
Method Detail |
---|
public void doWait() throws LockException
LockException
public void signalDeadlock()
public void suspendWaiting()
public void lockReleased()
lockReleased
in interface LockListener
public boolean isSuspended()
public Thread getThread()
public Lock getLock()
public int getLockType()
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |