java.lang.Object
com.github.devmix.process.acto.messages.Idle

public final class Idle extends Object
Represents an Active Object message for controlling idle state transitions.
Author:
Sergey Grachev
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents an Active Object message indicating a request to activate, transitioning from idle to active state.
    static final class 
    Represents an Active Object message indicating a request to deactivate, transitioning from active to idle state.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a singleton instance of the Idle.Activate message, indicating that the Active Object should transition from idle to active state.
    Creates and returns an instance of the Idle.Deactivate message, indicating that the Active Object should transition from active to idle state without forcing the transition.
    Returns a singleton instance of the Idle.Deactivate message, indicating that the Active Object should transition from active to idle state and forcing the transition immediately.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • activate

      public static Idle.Activate activate()
      Returns a singleton instance of the Idle.Activate message, indicating that the Active Object should transition from idle to active state.
      Returns:
      the singleton Idle.Activate message
    • deactivate

      public static Idle.Deactivate deactivate()
      Creates and returns an instance of the Idle.Deactivate message, indicating that the Active Object should transition from active to idle state without forcing the transition.
      Returns:
      a new instance of the Idle.Deactivate message with force set to false
    • deactivateNow

      public static Idle.Deactivate deactivateNow()
      Returns a singleton instance of the Idle.Deactivate message, indicating that the Active Object should transition from active to idle state and forcing the transition immediately.
      Returns:
      the singleton Idle.Deactivate message with force set to true