Package org.oddjob.state
Interface StateDetail
- All Known Implementing Classes:
StatefulHandlerFactory.StateData
public interface StateDetail
The Detail of an
StateEvent without the source. Used as an abstraction for Serialisation
and for State Operators where the source will be changed.-
Method Summary
Modifier and TypeMethodDescriptiongetState()default StateEventCreate a State Event from this detail and the given source.
-
Method Details
-
getState
State getState() -
getStateInstant
StateInstant getStateInstant() -
getException
Throwable getException() -
toEvent
Create a State Event from this detail and the given source. Not sure why we have this andStateEvent.fromDetail(Stateful, StateDetail).- Parameters:
source- The source of the new State Event.- Returns:
- A new State Event.
-