Record Class ModelStreamBatchDecoder.Entry

java.lang.Object
java.lang.Record
io.fluxzero.common.api.modeling.ModelStreamBatchDecoder.Entry
Enclosing class:
ModelStreamBatchDecoder

public static record ModelStreamBatchDecoder.Entry(String modelId, String modelType, long stateIndex, long readStateIndex, String commitId, int substep, long eventIndex, long sequenceNumber, boolean historyComplete, long payloadBytes, String documentCollection) extends Record
One independently addressable stored model membership.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(String modelId, String modelType, long stateIndex, long readStateIndex, String commitId, int substep, long eventIndex, long sequenceNumber, boolean historyComplete, long payloadBytes, String documentCollection)
    Creates an instance of a Entry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the commitId record component.
    Returns the value of the documentCollection record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the eventIndex record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the historyComplete record component.
    Returns the value of the modelId record component.
    Returns the value of the modelType record component.
    long
    Returns the value of the payloadBytes record component.
    long
    Returns the value of the readStateIndex record component.
    long
    Returns the value of the sequenceNumber record component.
    long
    Returns the value of the stateIndex record component.
    int
    Returns the value of the substep record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entry

      public Entry(String modelId, String modelType, long stateIndex, long readStateIndex, String commitId, int substep, long eventIndex, long sequenceNumber, boolean historyComplete, long payloadBytes, String documentCollection)
      Creates an instance of a Entry record class.
      Parameters:
      modelId - the value for the modelId record component
      modelType - the value for the modelType record component
      stateIndex - the value for the stateIndex record component
      readStateIndex - the value for the readStateIndex record component
      commitId - the value for the commitId record component
      substep - the value for the substep record component
      eventIndex - the value for the eventIndex record component
      sequenceNumber - the value for the sequenceNumber record component
      historyComplete - the value for the historyComplete record component
      payloadBytes - the value for the payloadBytes record component
      documentCollection - the value for the documentCollection record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • modelType

      public String modelType()
      Returns the value of the modelType record component.
      Returns:
      the value of the modelType record component
    • stateIndex

      public long stateIndex()
      Returns the value of the stateIndex record component.
      Returns:
      the value of the stateIndex record component
    • readStateIndex

      public long readStateIndex()
      Returns the value of the readStateIndex record component.
      Returns:
      the value of the readStateIndex record component
    • commitId

      public String commitId()
      Returns the value of the commitId record component.
      Returns:
      the value of the commitId record component
    • substep

      public int substep()
      Returns the value of the substep record component.
      Returns:
      the value of the substep record component
    • eventIndex

      public long eventIndex()
      Returns the value of the eventIndex record component.
      Returns:
      the value of the eventIndex record component
    • sequenceNumber

      public long sequenceNumber()
      Returns the value of the sequenceNumber record component.
      Returns:
      the value of the sequenceNumber record component
    • historyComplete

      public boolean historyComplete()
      Returns the value of the historyComplete record component.
      Returns:
      the value of the historyComplete record component
    • payloadBytes

      public long payloadBytes()
      Returns the value of the payloadBytes record component.
      Returns:
      the value of the payloadBytes record component
    • documentCollection

      public String documentCollection()
      Returns the value of the documentCollection record component.
      Returns:
      the value of the documentCollection record component