Class Idle
java.lang.Object
com.github.devmix.process.acto.messages.Idle
Represents an Active Object message for controlling idle state transitions.
- Author:
- Sergey Grachev
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an Active Object message indicating a request to activate, transitioning from idle to active state.static final classRepresents an Active Object message indicating a request to deactivate, transitioning from active to idle state. -
Method Summary
Modifier and TypeMethodDescriptionstatic Idle.Activateactivate()Returns a singleton instance of theIdle.Activatemessage, indicating that the Active Object should transition from idle to active state.static Idle.DeactivateCreates and returns an instance of theIdle.Deactivatemessage, indicating that the Active Object should transition from active to idle state without forcing the transition.static Idle.DeactivateReturns a singleton instance of theIdle.Deactivatemessage, indicating that the Active Object should transition from active to idle state and forcing the transition immediately.
-
Method Details
-
activate
Returns a singleton instance of theIdle.Activatemessage, indicating that the Active Object should transition from idle to active state.- Returns:
- the singleton
Idle.Activatemessage
-
deactivate
Creates and returns an instance of theIdle.Deactivatemessage, indicating that the Active Object should transition from active to idle state without forcing the transition.- Returns:
- a new instance of the
Idle.Deactivatemessage with force set to false
-
deactivateNow
Returns a singleton instance of theIdle.Deactivatemessage, indicating that the Active Object should transition from active to idle state and forcing the transition immediately.- Returns:
- the singleton
Idle.Deactivatemessage with force set to true
-