public abstract class MultiStateTransitionListener<OPERAND,EVENT,STATE extends Enum<STATE>> extends Object implements StateTransitionListener<OPERAND,EVENT,STATE>
StateTransitionListener that dispatches the pre and post
 state transitions to multiple registered listeners.
 NOTE: The registered listeners are called in a for loop. Clients should
       know that a listener configured earlier might prevent a later listener
       from being called, if for instance it throws an un-caught Exception.| Constructor and Description | 
|---|
| MultiStateTransitionListener() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addListener(StateTransitionListener<OPERAND,EVENT,STATE> listener)Add a listener to the list of listeners. | 
| void | postTransition(OPERAND op,
              STATE beforeState,
              STATE afterState,
              EVENT processedEvent)Post Transition Hook. | 
| void | preTransition(OPERAND op,
             STATE beforeState,
             EVENT eventToBeProcessed)Pre Transition Hook. | 
public void addListener(StateTransitionListener<OPERAND,EVENT,STATE> listener)
listener - A listener.public void preTransition(OPERAND op, STATE beforeState, EVENT eventToBeProcessed)
StateTransitionListenerpreTransition in interface StateTransitionListener<OPERAND,EVENT,STATE extends Enum<STATE>>op - Operand.beforeState - State before transition.eventToBeProcessed - Incoming Event.public void postTransition(OPERAND op, STATE beforeState, STATE afterState, EVENT processedEvent)
StateTransitionListenerpostTransition in interface StateTransitionListener<OPERAND,EVENT,STATE extends Enum<STATE>>op - Operand.beforeState - State before transition.afterState - State after transition.processedEvent - Processed Event.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.