Class ModelEventMetadata
java.lang.Object
io.fluxzero.common.api.modeling.ModelEventMetadata
Reserved metadata keys identifying events emitted by an independent-model commit.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelReadBoundaryreadBoundary(Metadata metadata) Returns the commit boundary carried bymetadata, ornullwhen it is not a Model event.static ModelReadBoundaryreadBoundary(Metadata metadata, MessageType messageType, Long messageIndex) Returns the Model boundary carried by a Model event, or falls back to an existing global event index.
-
Field Details
-
COMMIT_ID
Durable idempotency identity of the model commit that emitted an event.- See Also:
-
SUBSTEP
-
-
Method Details
-
readBoundary
Returns the commit boundary carried bymetadata, ornullwhen it is not a Model event. -
readBoundary
public static ModelReadBoundary readBoundary(Metadata metadata, MessageType messageType, Long messageIndex) Returns the Model boundary carried by a Model event, or falls back to an existing global event index.The fallback lets events that predate Model metadata address state reconstructed from that same published event. Without migration coordination, an event without a Model mapping retains ordinary current-state behavior. A repository configured with
followPublishedEventMigrationmay instead wait for the mapping or reject a processed event that produced none. An event index is never interpreted as a Model state index.
-