public class BooleanMessageCodec extends Object implements MessageCodec<Boolean,Boolean>
| Constructor and Description |
|---|
BooleanMessageCodec() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
decodeFromWire(int pos,
Buffer buffer)
Called by Vert.x when a message is decoded from the wire.
|
void |
encodeToWire(Buffer buffer,
Boolean b)
Called by Vert.x when marshalling a message to the wire.
|
String |
name()
The codec name.
|
byte |
systemCodecID()
Used to identify system codecs.
|
Boolean |
transform(Boolean b)
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
|
public void encodeToWire(Buffer buffer, Boolean b)
MessageCodecencodeToWire in interface MessageCodec<Boolean,Boolean>buffer - the message should be written into this bufferb - the message that is being sentpublic Boolean decodeFromWire(int pos, Buffer buffer)
MessageCodecdecodeFromWire in interface MessageCodec<Boolean,Boolean>pos - the position in the buffer where the message should be read from.buffer - the buffer to read the message frompublic Boolean transform(Boolean b)
MessageCodectransform in interface MessageCodec<Boolean,Boolean>b - the sent messagepublic String name()
MessageCodecname in interface MessageCodec<Boolean,Boolean>public byte systemCodecID()
MessageCodecsystemCodecID in interface MessageCodec<Boolean,Boolean>Copyright © 2020. All rights reserved.