|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.nio.NQueue
public class NQueue
Queue to use together with nio handling. This is a first-in first-out queue where handling can be stopped. The handling of objects is started automatically when the queue is created.
NQueueCallback
Constructor Summary | |
---|---|
NQueue(NQueueCallback callback)
Create a new queue which is going to use the provided switchboard and call the provided callback with new objects. |
Method Summary | |
---|---|
void |
append(java.lang.Object obj)
Append an object to the tail of this queue |
void |
restart()
Resume handling of objects. |
void |
stop()
Stop the processing of objects on this queue. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NQueue(NQueueCallback callback)
callback
- interface to call once new object arriveMethod Detail |
---|
public void append(java.lang.Object obj)
obj
- object to appendpublic void stop()
public void restart()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |