| Modifier and Type | Field and Description |
|---|---|
| private final CodecManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClusterSerializable | 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 ClusterSerializable 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, ClusterSerializable the message that is being sent obj)Implements io.
References Deprecated
Buffer and ClusterSerializable are deprecated or reference (maybe indirectly) at least one deprecated element.
Called by Vert.x when marshalling a message to the wire. |
| private static ClassLoader | |
| public String | |
| public byte | systemCodecID()
Implements io. Used to identify system codecs. |
| public ClusterSerializable | transform(ClusterSerializable
the sent message obj)Implements io.
References Deprecated
ClusterSerializable 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 |
| codecManager | back to summary |
|---|---|
| private final CodecManager codecManager | |
| ClusterSerializableCodec | back to summary |
|---|---|
| public ClusterSerializableCodec(CodecManager codecManager) | |
| decodeFromWire | back to summary |
|---|---|
| public ClusterSerializable 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, ClusterSerializable obj) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Called by Vert.x when marshalling a message to the wire.
| |
| getClassLoader | back to summary |
|---|---|
| private static ClassLoader getClassLoader() | |
| 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 ClusterSerializable transform(ClusterSerializable obj) 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
| |