Class ModelEventWireCodec
java.lang.Object
io.fluxzero.common.api.modeling.ModelEventWireCodec
Compact websocket representation for model-stream reads.
Model-event responses contain many small memberships. Encoding those as generic CBOR objects costs substantially more CPU and allocation than loading the underlying rows. This codec preserves the same protocol objects while representing their fixed fields directly.
-
Method Summary
-
Method Details
-
tryEncode
Encodes a homogeneous compact model-event request or result batch.- Throws:
IOException
-
tryDecode
Decodes this codec's representation, or returnsnullfor another transport format.- Throws:
IOException
-