Class QueueListenerAdapter<T,U,V>

java.lang.Object
org.jppf.queue.QueueListenerAdapter<T,U,V>
Type Parameters:
T - the type of jobs that are queued.
U - the type of bundles the jobs are split into.
V - the type of resulting bundles the jobs are split into.
All Implemented Interfaces:
EventListener, QueueListener<T,U,V>

public class QueueListenerAdapter<T,U,V> extends Object implements QueueListener<T,U,V>
Queue listener adapter, providing no-op implemzntations for the QueueListener interface methods. Subclasses only need to override the methods they're interested in.
Since:
4.1
Author:
Laurent Cohen
  • Constructor Details

    • QueueListenerAdapter

      public QueueListenerAdapter()
  • Method Details

    • bundleAdded

      public void bundleAdded(QueueEvent<T,U,V> event)
      Description copied from interface: QueueListener
      Notify a listener that a bundle was added to the queue.
      Specified by:
      bundleAdded in interface QueueListener<T,U,V>
      Parameters:
      event - a queue event.
    • bundleRemoved

      public void bundleRemoved(QueueEvent<T,U,V> event)
      Description copied from interface: QueueListener
      Notify a listener that a bundle was removed from the queue.
      Specified by:
      bundleRemoved in interface QueueListener<T,U,V>
      Parameters:
      event - a queue event.