Class TrackingWireCodec
java.lang.Object
io.fluxzero.common.api.tracking.TrackingWireCodec
Compact binary websocket representation for message publication and tracking.
The codec changes only the transport representation. Individual requests, messages, request identifiers, positions and response timings remain intact. Unsupported or heterogeneous values are left to the regular websocket transport codec.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonTypetryDecode(byte[] bytes) Decodes this codec's representation, or returnsnullfor another transport representation.static byte[]Encodes a supported tracking value, or returnsnullwhen the regular codec should be used.static byte[]Encodes routed native envelopes only for a peer that explicitly supports them.
-
Method Details
-
tryEncode
Encodes a supported tracking value, or returnsnullwhen the regular codec should be used.- Throws:
IOException
-
tryEncode
Encodes routed native envelopes only for a peer that explicitly supports them.- Throws:
IOException
-
tryDecode
Decodes this codec's representation, or returnsnullfor another transport representation.- Throws:
IOException
-