Type Parameters:
STATE - The type of Aggregate State that this Decider works with in Handler.handle(Object, Object), InitialStateProvider.initialState(), StateEvolver.applyEvent(Object, Object) and isFinal(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

    Modifier and Type
    Method
    Description
    boolean
    isFinal(STATE state)
    Return true from this method IF the aggregate's state is final and no more changes can occur, i.e.
  • Method Details

    • 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 an ERROR)
      Note: This method is called isTerminal in the decider pattern
      Parameters:
      state - the current STATE of the aggregate
      Returns:
      true IF the aggregate's state is final, otherwise false