|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentaqueue.pooled.PooledBlockingLinkedQueue<E>
public class PooledBlockingLinkedQueue<E>
| Constructor Summary | |
|---|---|
PooledBlockingLinkedQueue(Builder<E> builder)
|
|
PooledBlockingLinkedQueue(Class<E> klass)
|
|
PooledBlockingLinkedQueue(int capacity,
Builder<E> builder)
|
|
PooledBlockingLinkedQueue(int capacity,
Class<E> klass)
|
|
| Method Summary | |
|---|---|
long |
availableToPoll()
Return the number of objects that can be safely polled from this queue. |
void |
donePolling()
Called to indicate that all polling have been concluded. |
void |
donePolling(boolean lazySet)
Called to indicate that all polling have been concluded. |
void |
flush()
Dispatch *immediately* all previously obtained objects through the nextToDispatch() method to the queue. |
void |
flush(boolean lazySet)
Dispatch all previously obtained objects through the nextToDispatch() method to the queue. |
E |
nextToDispatch()
Return the next pooled mutable object that can be used by the producer to dispatch data to the queue. |
E |
poll()
Poll a object from the queue. |
void |
rollback()
Pretend you never polled the last object you polled since the last time you called donePolling(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PooledBlockingLinkedQueue(int capacity,
Builder<E> builder)
public PooledBlockingLinkedQueue(Builder<E> builder)
public PooledBlockingLinkedQueue(Class<E> klass)
public PooledBlockingLinkedQueue(int capacity,
Class<E> klass)
| Method Detail |
|---|
public E nextToDispatch()
BatchingQueue
nextToDispatch in interface BatchingQueue<E>public void flush(boolean lazySet)
BatchingQueue
flush in interface BatchingQueue<E>lazySet - flush (i.e. notify the consumer) in a lazy way or flush immediatelypublic long availableToPoll()
BatchingQueue
availableToPoll in interface BatchingQueue<E>public final void flush()
BatchingQueue
flush in interface BatchingQueue<E>public E poll()
BatchingQueue
poll in interface BatchingQueue<E>public void donePolling(boolean lazySet)
BatchingQueue
donePolling in interface BatchingQueue<E>lazySet - notify the producer in a lazy way or notify the producer immediatelypublic final void donePolling()
BatchingQueue
donePolling in interface BatchingQueue<E>public final void rollback()
BatchingQueue
rollback in interface BatchingQueue<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||