Class EventTrigger<S,E>
java.lang.Object
org.springframework.statemachine.trigger.EventTrigger<S,E>
- All Implemented Interfaces:
Trigger<S,
E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriggerListener
(TriggerListener listener) Adds the trigger listener.void
arm()
Arm a trigger.void
disarm()
Disarm a trigger.reactor.core.publisher.Mono<Boolean>
evaluate
(TriggerContext<S, E> context) Evaluate trigger.getEvent()
Gets the event associated with this trigger.
-
Constructor Details
-
EventTrigger
-
-
Method Details
-
evaluate
Description copied from interface:Trigger
Evaluate trigger. -
addTriggerListener
Description copied from interface:Trigger
Adds the trigger listener.- Specified by:
addTriggerListener
in interfaceTrigger<S,
E> - Parameters:
listener
- the listener
-
getEvent
Description copied from interface:Trigger
Gets the event associated with this trigger. It is possible that there are no event association. -
arm
public void arm()Description copied from interface:Trigger
Arm a trigger. After trigger has been armed aTriggerListener
may receive events. -
disarm
public void disarm()Description copied from interface:Trigger
Disarm a trigger. After trigger has been disarmed aTriggerListener
will not receive events.
-