Class QueueEvent<T,U,V>

java.lang.Object
java.util.EventObject
org.jppf.queue.QueueEvent<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:
Serializable

public class QueueEvent<T,U,V> extends EventObject
Instances of this class represent JPPFQueue events.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • QueueEvent

      public QueueEvent(JPPFQueue<T,U,V> queue, T job, boolean requeue)
      Initialize this event with the specified queue and bundle.
      Parameters:
      queue - the queue this event originates from.
      job - represents part or the totality of a job that was submitted.
      requeue - determines if the event is a requeued bundle, following a node failure for instance.
  • Method Details

    • getQueue

      public JPPFQueue<T,U,V> getQueue()
      Get the queue this event originates from.
      Returns:
      an instance of JPPFQueue.
    • getJob

      public T getJob()
      Get the task bundle that is the cause of the event.
      Returns:
      an instance of ClientJob.
    • isRequeued

      public boolean isRequeued()
      Determine if this event is a requeued bundle, following a node failure for instance.
      Returns:
      true if a bundle was requeued, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class EventObject