Interface IsStateFinalResolver<STATE>
-
- Type Parameters:
STATE- The type of Aggregate State that thisDeciderworks with inHandler.handle(Object, Object),InitialStateProvider.initialState(),StateEvolver.applyEvent(Object, Object)andisFinal(Object)
- All Known Subinterfaces:
Decider<COMMAND,EVENT,ERROR,STATE>
public interface IsStateFinalResolver<STATE>Deciderrelated interface that resolves if the aggregate's state is final and no more changes can occur, i.e. no more events can be persisted (i.e.Handler.handle(Object, Object)will return anERROR)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisFinal(STATE state)Return true from this method IF the aggregate's state is final and no more changes can occur, i.e.
-
-
-
Method Detail
-
isFinal
boolean isFinal(STATE state)
Return true from this method IF the aggregate's state is final and no more changes can occur, i.e. no more events can be persisted (i.e.Handler.handle(Object, Object)will return anERROR)
Note: This method is calledisTerminalin the decider pattern- Parameters:
state- the currentSTATEof the aggregate- Returns:
- true IF the aggregate's state is final, otherwise false
-
-