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 -
Method Summary
Modifier and TypeMethodDescriptioncommitId()Returns the value of thecommitIdrecord component.Returns the value of thedocumentCollectionrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventIndexrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehistoryCompleterecord component.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelTyperecord component.longReturns the value of thepayloadBytesrecord component.longReturns the value of thereadStateIndexrecord component.longReturns the value of thesequenceNumberrecord component.longReturns the value of thestateIndexrecord component.intsubstep()Returns the value of thesubsteprecord component.final StringtoString()Returns a string representation of this record class.
-
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 aEntryrecord class.- Parameters:
modelId- the value for themodelIdrecord componentmodelType- the value for themodelTyperecord componentstateIndex- the value for thestateIndexrecord componentreadStateIndex- the value for thereadStateIndexrecord componentcommitId- the value for thecommitIdrecord componentsubstep- the value for thesubsteprecord componenteventIndex- the value for theeventIndexrecord componentsequenceNumber- the value for thesequenceNumberrecord componenthistoryComplete- the value for thehistoryCompleterecord componentpayloadBytes- the value for thepayloadBytesrecord componentdocumentCollection- the value for thedocumentCollectionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
modelId
Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
modelType
Returns the value of themodelTyperecord component.- Returns:
- the value of the
modelTyperecord component
-
stateIndex
public long stateIndex()Returns the value of thestateIndexrecord component.- Returns:
- the value of the
stateIndexrecord component
-
readStateIndex
public long readStateIndex()Returns the value of thereadStateIndexrecord component.- Returns:
- the value of the
readStateIndexrecord component
-
commitId
Returns the value of thecommitIdrecord component.- Returns:
- the value of the
commitIdrecord component
-
substep
public int substep()Returns the value of thesubsteprecord component.- Returns:
- the value of the
substeprecord component
-
eventIndex
public long eventIndex()Returns the value of theeventIndexrecord component.- Returns:
- the value of the
eventIndexrecord component
-
sequenceNumber
public long sequenceNumber()Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
historyComplete
public boolean historyComplete()Returns the value of thehistoryCompleterecord component.- Returns:
- the value of the
historyCompleterecord component
-
payloadBytes
public long payloadBytes()Returns the value of thepayloadBytesrecord component.- Returns:
- the value of the
payloadBytesrecord component
-
documentCollection
Returns the value of thedocumentCollectionrecord component.- Returns:
- the value of the
documentCollectionrecord component
-