Class ReactionRecorder
java.lang.Object
ch.admin.bit.jeap.reaction.observer.core.domain.ReactionRecorder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCleanup resources created at the start of the current trigger.voidonAction(Observation action) Publish a reaction (either including the trigger if one has been recorded, or an action-only reaction).voidPublish the current trigger unless it has already been published by an action occuring in the meantimevoidonTriggerStart(Observation trigger) Record the occurrence of a trigger
-
Constructor Details
-
ReactionRecorder
-
-
Method Details
-
onAction
Publish a reaction (either including the trigger if one has been recorded, or an action-only reaction). -
onTriggerStart
Record the occurrence of a trigger -
onTriggerHandled
public void onTriggerHandled()Publish the current trigger unless it has already been published by an action occuring in the meantime -
afterTrigger
public void afterTrigger()Cleanup resources created at the start of the current trigger.
-