Class GetModelEventsResult
java.lang.Object
io.fluxzero.common.api.AbstractRequestResult
io.fluxzero.common.api.modeling.GetModelEventsResult
- All Implemented Interfaces:
JsonType, RequestResult
Model heads and stream memberships observed at one pinned
stateIndex.
Event payloads are deduplicated by state index. Memberships reference that identity so loading several target streams affected by the same original event does not multiply event-message bytes on the wire.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGetModelEventsResult(long requestId, long stateIndex, boolean exactBoundary, List<ModelEventPayload> payloads, List<ModelEventStream> streams) GetModelEventsResult(long requestId, long stateIndex, boolean exactBoundary, List<ModelEventPayload> payloads, List<ModelEventStream> streams, long[] payloadStateIndices, List<ModelEventPayloadBlock> payloadBlocks, long[] payloadEventIndices, List<ModelEventDataBlock> membershipBlocks) GetModelEventsResult(long requestId, long stateIndex, List<ModelEventPayload> payloads, List<ModelEventStream> streams) -
Method Summary
Modifier and TypeMethodDescriptiontoMetric()Converts this object into a compact metric representation for logging or monitoring.withExactBoundary(boolean exactBoundary) Returns this result with explicit evidence whether the original selector resolved exactly.Methods inherited from class AbstractRequestResult
getRequestReceivedTimestamp, getResponseQueuedTimestamp, getResponseSendStartTimestamp, setRequestReceivedTimestamp, setResponseQueuedTimestamp, setResponseSendStartTimestampMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestResult
getRequestId, getTimestamp
-
Constructor Details
-
GetModelEventsResult
public GetModelEventsResult(long requestId, long stateIndex, List<ModelEventPayload> payloads, List<ModelEventStream> streams) -
GetModelEventsResult
public GetModelEventsResult(long requestId, long stateIndex, boolean exactBoundary, List<ModelEventPayload> payloads, List<ModelEventStream> streams) -
GetModelEventsResult
@ConstructorProperties({"requestId","stateIndex","exactBoundary","payloads","streams","payloadStateIndices","payloadBlocks","payloadEventIndices","membershipBlocks"}) public GetModelEventsResult(long requestId, long stateIndex, boolean exactBoundary, List<ModelEventPayload> payloads, List<ModelEventStream> streams, long[] payloadStateIndices, List<ModelEventPayloadBlock> payloadBlocks, long[] payloadEventIndices, List<ModelEventDataBlock> membershipBlocks)
-
-
Method Details
-
withExactBoundary
Returns this result with explicit evidence whether the original selector resolved exactly. -
toMetric
Description copied from interface:JsonTypeConverts this object into a compact metric representation for logging or monitoring.Used by the Fluxzero Java SDK to avoid logging large payloads directly while still tracking platform usage.
- Returns:
- a safe and compact object suitable for serialization to the metrics log
-