com.mindbright.nio
public class NQueue extends java.lang.Object
NQueueCallback
Constructor and Description |
---|
NQueue(NQueueCallback callback)
Create a new queue which is going to use the provided
switchboard and call the provided callback with new objects.
|
public NQueue(NQueueCallback callback)
callback
- interface to call once new object arrivepublic void append(java.lang.Object obj)
obj
- object to appendpublic void stop()
public void stop(boolean synch)
public void restart()
public java.lang.String toString()
toString
in class java.lang.Object