org.apache.falcon.rerun.queue
Class InMemoryQueue<T extends RerunEvent>
java.lang.Object
org.apache.falcon.rerun.queue.DelayedQueue<T>
org.apache.falcon.rerun.queue.InMemoryQueue<T>
- Type Parameters:
T
-
public class InMemoryQueue<T extends RerunEvent>
- extends DelayedQueue<T>
An in-memory implementation of a DelayedQueue.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.log4j.Logger LOG
delayQueue
protected DelayQueue<T extends RerunEvent> delayQueue
InMemoryQueue
public InMemoryQueue(File serializeFilePath)
offer
public boolean offer(T event)
- Specified by:
offer
in class DelayedQueue<T extends RerunEvent>
take
public T take()
throws FalconException
- Specified by:
take
in class DelayedQueue<T extends RerunEvent>
- Throws:
FalconException
populateQueue
public void populateQueue(List<T> events)
- Specified by:
populateQueue
in class DelayedQueue<T extends RerunEvent>
init
public void init()
- Specified by:
init
in class DelayedQueue<T extends RerunEvent>
reconnect
public void reconnect()
throws FalconException
- Specified by:
reconnect
in class DelayedQueue<T extends RerunEvent>
- Throws:
FalconException
Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.