|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.almende.eve.transport.AsyncCallbackQueue<T>
public class AsyncCallbackQueue<T>
Queue to hold a list with callbacks in progress. The Queue handles timeouts on the callbacks.
Constructor Summary | |
---|---|
AsyncCallbackQueue()
|
Method Summary | |
---|---|
void |
clear()
Remove all callbacks from the queue. |
AsyncCallback<T> |
pull(String id)
Pull a callback from the queue. |
void |
push(String id,
AsyncCallback<T> callback)
Append a callback to the queue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncCallbackQueue()
Method Detail |
---|
public void push(String id, AsyncCallback<T> callback) throws Exception
id
- callback
-
Exception
public AsyncCallback<T> pull(String id)
id
-
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |