Interface IsStateFinalResolver<STATE>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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 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 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