| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Short | 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 is deprecated or references (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, Short the message that is being sent s)Implements io.
References Deprecated
Buffer is deprecated or references (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 Short | transform(Short
the sent message s)Implements io. 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 |
| ShortMessageCodec | back to summary |
|---|---|
| public ShortMessageCodec() | |
| decodeFromWire | back to summary |
|---|---|
| public Short 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, Short s) 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 Short transform(Short s) Implements io. Doc from io. 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 | |