|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmud.server.WaitQueue<E>
public class WaitQueue<E>
An Object Orientated implementation of the WaitQueue. (Locked based)
Constructor Summary | |
---|---|
WaitQueue()
Create a new WaitQueue |
Method Summary | |
---|---|
E |
pop()
Gets an item out of the queue, or blocks untill one is available |
void |
push(E item)
Add a new item to the queue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WaitQueue()
Method Detail |
---|
public void push(E item)
item
- Item to addpublic E pop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |