Package org.jppf.queue
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>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleAdded(QueueEvent<T, U, V> event) Notify a listener that a bundle was added to the queue.voidbundleRemoved(QueueEvent<T, U, V> event) Notify a listener that a bundle was removed from the queue.
-
Constructor Details
-
QueueListenerAdapter
public QueueListenerAdapter()
-
-
Method Details
-
bundleAdded
Description copied from interface:QueueListenerNotify a listener that a bundle was added to the queue.- Specified by:
bundleAddedin interfaceQueueListener<T,U, V> - Parameters:
event- a queue event.
-
bundleRemoved
Description copied from interface:QueueListenerNotify a listener that a bundle was removed from the queue.- Specified by:
bundleRemovedin interfaceQueueListener<T,U, V> - Parameters:
event- a queue event.
-