| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JsonObject | decodeFromWire(int
the position in the buffer where the message should be read from. pos, Buffer the buffer to read the message from buffer)Implements io.
References Deprecated
Buffer and JsonObject are deprecated or reference (maybe indirectly) at least one deprecated element.
Called by Vert.x when a message is decoded from the wire. |
| public void | encodeToWire(Buffer
the message should be written into this buffer buffer, JsonObject the message that is being sent jsonObject)Implements io.
References Deprecated
Buffer and JsonObject are deprecated or reference (maybe indirectly) at least one deprecated element.
Called by Vert.x when marshalling a message to the wire. |
| public String | |
| public byte | systemCodecID()
Implements io. Used to identify system codecs. |
| public JsonObject | transform(JsonObject
the sent message jsonObject)Implements io.
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
If a message is sent locally across the event bus, this method is called to transform the message from the sent type S to the received type R |
| JsonObjectMessageCodec | back to summary |
|---|---|
| public JsonObjectMessageCodec() | |
| decodeFromWire | back to summary |
|---|---|
| public JsonObject decodeFromWire(int pos, Buffer buffer) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Called by Vert.x when a message is decoded from the wire.
| |
| encodeToWire | back to summary |
|---|---|
| public void encodeToWire(Buffer buffer, JsonObject jsonObject) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Called by Vert.x when marshalling a message to the wire.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The codec name. Each codec must have a unique name. This is used to identify a codec when sending a message and for unregistering codecs. | |
| systemCodecID | back to summary |
|---|---|
| public byte systemCodecID() Implements io. Doc from io. Used to identify system codecs. Should always return -1 for a user codec.
| |
| transform | back to summary |
|---|---|
| public JsonObject transform(JsonObject jsonObject) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. If a message is sent locally across the event bus, this method is called to transform the message from the sent type S to the received type R
| |