Class IdleStateEvent

java.lang.Object
java.util.EventObject
org.jppf.node.idle.IdleStateEvent
All Implemented Interfaces:
Serializable

public class IdleStateEvent extends EventObject
Event emitted when the idle state of an IdleDetectionTask changes.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • IdleStateEvent

      public IdleStateEvent(org.jppf.node.idle.IdleDetectionTask task)
      Initialize this event with the task as source.
      Parameters:
      task - an IdleDetectionTask instance.
  • Method Details

    • getTask

      public org.jppf.node.idle.IdleDetectionTask getTask()
      Get the task source of this event.
      Returns:
      an IdleDetectionTask instance.
    • getState

      public IdleState getState()
      Get the idle state when this event was emitted.
      Returns:
      an IdleState enum value.