public class LinkedQueueSynchroBuffer
extends java.lang.Object
| Constructor and Description |
|---|
LinkedQueueSynchroBuffer()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the input (head) end of the queue.
|
void |
disable()
Disable the listener.
|
void |
enable()
Enable the listener.
|
void |
push(java.util.Collection collection)
Push a collection of objects into the buffer.
|
void |
push(java.lang.Object object)
Push an object into the buffer.
|
void |
setSynchroBufferListener(SynchroBufferListener listener)
Set the buffer consumer listener.
|
java.lang.Object |
take()
Atempt to take an object from the end buffer.
|
public void push(java.lang.Object object)
o - the object to pushpublic java.lang.Object take()
public void push(java.util.Collection collection)
collection - the collection of objects to pushpublic void setSynchroBufferListener(SynchroBufferListener listener)
listener - the listenerpublic void enable()
public void disable()
public void close()