|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventQueue
Interface to define the queue operations for the events system
Nested Class Summary | |
---|---|
static class |
EventQueue.EventQueueElement
|
Method Summary | |
---|---|
void |
add(org.apache.oozie.client.event.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 |
org.apache.oozie.client.event.Event |
peek()
Read topmost event from queue but do not pop from it |
org.apache.oozie.client.event.Event |
poll()
Fetch single event from queue |
List<org.apache.oozie.client.event.Event> |
pollBatch()
Fetch events from queue in batch |
int |
size()
Get current queue size |
Method Detail |
---|
void init(org.apache.hadoop.conf.Configuration conf)
conf
- void add(org.apache.oozie.client.event.Event e)
event
- List<org.apache.oozie.client.event.Event> pollBatch()
org.apache.oozie.client.event.Event poll()
boolean isEmpty()
int size()
org.apache.oozie.client.event.Event peek()
int getBatchSize()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |