|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.wimpi.modbus.util.LinkedQueue
public class LinkedQueue
| Field Summary | |
|---|---|
protected LinkedNode |
m_Head
Dummy header node of list. |
protected 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 Object |
extract()
Main mechanics for take/poll |
protected void |
insert(Object x)
Main mechanics for put/offer |
boolean |
isEmpty()
|
boolean |
offer(Object x,
long msecs)
|
Object |
peek()
|
Object |
poll(long msecs)
|
void |
put(Object x)
|
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 Object m_PutLock
protected LinkedNode m_Tail
protected int m_WaitingForTake
| Constructor Detail |
|---|
public LinkedQueue()
| Method Detail |
|---|
protected void insert(Object x)
protected Object extract()
public void put(Object x)
throws InterruptedException
InterruptedException
public boolean offer(Object x,
long msecs)
throws InterruptedException
InterruptedException
public Object take()
throws InterruptedException
InterruptedExceptionpublic Object peek()
public boolean isEmpty()
public Object poll(long msecs)
throws InterruptedException
InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||