|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.util.LinkedQueue
Field Summary | |
protected LinkedNode |
m_Head
Dummy header node of list. |
protected java.lang.Object |
m_PutLock
Helper monitor for managing access to last node. |
protected LinkedNode |
m_Tail
The last node of list. |
protected int |
m_WaitingForTake
The number of threads waiting for a take. |
Constructor Summary | |
LinkedQueue()
|
Method Summary | |
protected java.lang.Object |
extract()
Main mechanics for take/poll |
protected void |
insert(java.lang.Object x)
Main mechanics for put/offer |
boolean |
isEmpty()
|
boolean |
offer(java.lang.Object x,
long msecs)
|
java.lang.Object |
peek()
|
java.lang.Object |
poll(long msecs)
|
void |
put(java.lang.Object x)
|
java.lang.Object |
take()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected LinkedNode m_Head
protected final java.lang.Object m_PutLock
protected LinkedNode m_Tail
protected int m_WaitingForTake
Constructor Detail |
public LinkedQueue()
Method Detail |
protected void insert(java.lang.Object x)
protected java.lang.Object extract()
public void put(java.lang.Object x) throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean offer(java.lang.Object x, long msecs) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object take() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.Object peek()
public boolean isEmpty()
public java.lang.Object poll(long msecs) throws java.lang.InterruptedException
java.lang.InterruptedException
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |