24 Ekim 2021 Pazar

SpringBoot StateMachine StateMachineListener Arayüzü

Giriş
Şu satırı dahil ederiz
import org.springframework.statemachine.listener.StateMachineListener;
İskeleti şöyle
public class OrderStateMachineListener extends StateMachineListener<OrderState, OrderEvent>{

 void stateChanged(State<OrderState, OrderEvent> var1, State<OrderState, OrderEvent> var2){}
void stateEntered(State<OrderState, OrderEvent> var1){}
void stateExited(State<OrderState, OrderEvent> var1){}
void eventNotAccepted(Message<OrderEvent> var1){}
void transition(Transition<OrderState, OrderEvent> var1){} void transitionStarted(Transition<OrderState, OrderEvent> var1){}
void transitionEnded(Transition<OrderState, OrderEvent> var1){}
void stateMachineStarted(StateMachine<OrderState, OrderEvent> var1){}
void stateMachineStopped(StateMachine<OrderState, OrderEvent> var1){}
void stateMachineError(State<OrderState, OrderEvent> var1, Exception var2){}
void extendedStateChanged(Object var1, Object var2){} void stateContext(StateContext<OrderState, OrderEvent> var1){}
}

Hiç yorum yok:

Yorum Gönder