public class WaitingQueue extends Object implements ChunkQueue
| Constructor and Description | 
|---|
| WaitingQueue() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Chunk event)Add a chunk to the queue, blocking if queue is full. | 
| void | add(List<Chunk> events) | 
| void | collect(List<Chunk> events,
       int maxCount)Return at least one, and no more than count, Chunks into chunks. | 
| int | size()Return an approximation of the number of chunks in the queue currently. | 
public void add(Chunk event)
ChunkQueueadd in interface ChunkQueueadd in interface ChunkReceiverpublic void collect(List<Chunk> events, int maxCount)
ChunkQueuecollect in interface ChunkQueuepublic int size()
ChunkQueuesize in interface ChunkQueueCopyright © 2014 Apache Software Foundation. All Rights Reserved.