Interface ModelCommitAssignment.Head

Enclosing class:
ModelCommitAssignment

public static interface ModelCommitAssignment.Head
Store head values needed to assign the next transition.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Model's current document collection, or null when it has no document.
    default Long
    Returns the first state index with incomplete history, or null for complete history.
    boolean
    Returns whether the Model's state can be reconstructed from its complete event history.
    Returns the stored Model type associated with this head.
    long
    Returns the last assigned event sequence number for this Model.
  • Method Details

    • modelType

      String modelType()
      Returns the stored Model type associated with this head.
    • sequenceNumber

      long sequenceNumber()
      Returns the last assigned event sequence number for this Model.
    • historyComplete

      boolean historyComplete()
      Returns whether the Model's state can be reconstructed from its complete event history.
    • documentCollection

      String documentCollection()
      Returns the Model's current document collection, or null when it has no document.
    • firstIncompleteStateIndex

      default Long firstIncompleteStateIndex()
      Returns the first state index with incomplete history, or null for complete history. The default uses Long.MIN_VALUE when the precise boundary is unknown.