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

java.lang.Object
  extended by org.apache.falcon.rerun.queue.DelayedQueue<T>
Type Parameters:
T -
Direct Known Subclasses:
ActiveMQueue, InMemoryQueue

public abstract class DelayedQueue<T extends RerunEvent>
extends Object

Base class for a Queue implementation.


Field Summary
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
DelayedQueue()
           
 
Method Summary
abstract  void init()
           
abstract  boolean offer(T event)
           
abstract  void populateQueue(List<T> events)
           
abstract  void reconnect()
           
abstract  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
Constructor Detail

DelayedQueue

public DelayedQueue()
Method Detail

offer

public abstract boolean offer(T event)
                       throws FalconException
Throws:
FalconException

take

public abstract T take()
                                   throws FalconException
Throws:
FalconException

populateQueue

public abstract void populateQueue(List<T> events)

init

public abstract void init()

reconnect

public abstract void reconnect()
                        throws FalconException
Throws:
FalconException


Copyright © 2013-2014 Apache Software Foundation. All Rights Reserved.