Class DocumentMessageReader
java.lang.Object
io.fluxzero.sdk.persisting.search.DocumentMessageReader
Internal, registration-scoped document reader. Retains the original composition for typed Graph handlers while
preserving the ordinary logical message, handler selection, payload parameters and interceptor input.
The root's upcast payload is reused; descendant paths and revisions always refer to the original composition.
Explicit internal Model-source handlers also require exactly one upcast state; ordinary document streams retain
split/drop semantics. Registrations are reference-counted and removed with their handlers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(List<io.fluxzero.common.api.SerializedMessage> messages, String topic, Serializer serializer) Reads a batch; topics without typed Graph handlers retain the original serializer stream.booleanreadsGraphs(String topic) Whether this collection needs the original composition alongside its logical document payload.io.fluxzero.common.RegistrationRecords accepted typed Graph and Model-source methods until the returned registration is cancelled.
-
Constructor Details
-
DocumentMessageReader
public DocumentMessageReader()
-
-
Method Details
-
register
public io.fluxzero.common.Registration register(Object target, io.fluxzero.common.handling.HandlerFilter filter) Records accepted typed Graph and Model-source methods until the returned registration is cancelled. -
readsGraphs
Whether this collection needs the original composition alongside its logical document payload. -
read
public Stream<DeserializingMessage> read(List<io.fluxzero.common.api.SerializedMessage> messages, String topic, Serializer serializer) Reads a batch; topics without typed Graph handlers retain the original serializer stream.
-