public class MemoryEventQueue extends Object implements EventQueue
EventQueue.EventQueueElement| Constructor and Description |
|---|
MemoryEventQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Event e)
Add event to queue
|
void |
clear()
Clear the events queue
|
int |
getBatchSize()
Get the batch size used during polling events
|
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the event queue
|
boolean |
isEmpty()
Find out if queue is empty
|
Event |
peek()
Read topmost event from queue but do not pop from it
|
Event |
poll()
Fetch single event from queue
|
List<Event> |
pollBatch()
Fetch events from queue in batch
|
int |
size()
Get current queue size
|
public MemoryEventQueue()
public void init(org.apache.hadoop.conf.Configuration conf)
EventQueueinit in interface EventQueuepublic int getBatchSize()
EventQueuegetBatchSize in interface EventQueuepublic void add(Event e)
EventQueueadd in interface EventQueuepublic List<Event> pollBatch()
EventQueuepollBatch in interface EventQueuepublic Event poll()
EventQueuepoll in interface EventQueuepublic boolean isEmpty()
EventQueueisEmpty in interface EventQueuepublic int size()
EventQueuesize in interface EventQueuepublic Event peek()
EventQueuepeek in interface EventQueuepublic void clear()
EventQueueclear in interface EventQueueCopyright © 2015 Apache Software Foundation. All Rights Reserved.