public interface EventQueue
Modifier and Type | Interface and Description |
---|---|
static class |
EventQueue.EventQueueElement |
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
|
void init(org.apache.hadoop.conf.Configuration conf)
conf
- boolean isEmpty()
int size()
int getBatchSize()
void clear()
Copyright © 2018 Apache Software Foundation. All rights reserved.