org.apache.falcon.rerun.queue
Class InMemoryQueue<T extends RerunEvent>

java.lang.Object
  extended by org.apache.falcon.rerun.queue.DelayedQueue<T>
      extended by 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.


Field Summary
protected  DelayQueue<T> delayQueue
           
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
InMemoryQueue(File serializeFilePath)
           
 
Method Summary
 void init()
           
 boolean offer(T event)
           
 void populateQueue(List<T> events)
           
 void reconnect()
           
 T take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

delayQueue

protected DelayQueue<T extends RerunEvent> delayQueue
Constructor Detail

InMemoryQueue

public InMemoryQueue(File serializeFilePath)
Method Detail

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.