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>
Decider related 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 an ERROR)-
Method Summary
-
Method Details
-
isFinal
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
-