@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface StateTransitionListener<OPERAND,EVENT,STATE extends Enum<STATE>>
Modifier and Type | Method and Description |
---|---|
void |
postTransition(OPERAND op,
STATE beforeState,
STATE afterState,
EVENT processedEvent)
Post Transition Hook.
|
void |
preTransition(OPERAND op,
STATE beforeState,
EVENT eventToBeProcessed)
Pre Transition Hook.
|
void preTransition(OPERAND op, STATE beforeState, EVENT eventToBeProcessed)
op
- Operand.beforeState
- State before transition.eventToBeProcessed
- Incoming Event.void postTransition(OPERAND op, STATE beforeState, STATE afterState, EVENT processedEvent)
op
- Operand.beforeState
- State before transition.afterState
- State after transition.processedEvent
- Processed Event.Copyright © 2024 Apache Software Foundation. All rights reserved.