io.statusmachina.core.api.TransitionData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of status-machina-core Show documentation
Show all versions of status-machina-core Show documentation
Core functionality for Status Machina, a small, simple and pragmatic state machine for resilient microservices orchestration.
The newest version!
package io.statusmachina.core.api;
import java.util.Map;
import java.util.Optional;
public interface TransitionData extends StateMachineData{
/**
* @return the state from which the machine was transitioning out
*/
S getFrom();
/**
* @return the state to which the machine was transitioning to
*/
S getTo();
/**
* @return the event that triggered the transition, empty optional if STP
*/
Optional getEvent();
/**
* @return the context as it was in the source state
*/
Map getContext();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy