public final class ChannelAccessRepeaterRegisterMessage extends ChannelAccessMessage
REPEATER_REGISTER
message. This message can
only be received, not sent. It is only supported for compatibility with
legacy clients. New clients should simply send an empty packet instead. A
repeater that receives this message should treat it the same way it treats an
empty packet.ChannelAccessCommand.REPEATER_REGISTER
command, originalMessageHeader
Modifier and Type | Method and Description |
---|---|
protected static ChannelAccessRepeaterRegisterMessage |
deserialize(ChannelAccessMessageHeader messageHeader,
ByteSource byteSource)
Constructs a message from a header and a byte source.
|
protected void |
serialize(ByteSink byteSink,
ChannelAccessVersion version,
int maxPayloadSize,
java.nio.charset.Charset charset)
Serializes this message to a byte sink.
|
java.lang.String |
toString()
Returns a string representation of this message.
|
protected void |
verify(ChannelAccessVersion version,
int maxPayloadSize,
java.nio.charset.Charset charset)
Verifies that this message can be serialized.
|
addByteArrayToStringBuilder, calculatePaddingSize, equals, getCommand, getOriginalMessageHeader, hashCode, hasOriginalMessageHeader, serializeHeader, verifyHeader
public java.lang.String toString()
ChannelAccessMessage
toString
in class ChannelAccessMessage
protected void serialize(ByteSink byteSink, ChannelAccessVersion version, int maxPayloadSize, java.nio.charset.Charset charset)
ChannelAccessMessage
ChannelAccessMessageCodec
.serialize
in class ChannelAccessMessage
byteSink
- byte sink that is used for writing the serialized data.version
- protocol version to stay compatible with. This is the protocol
version of the peer the message is sent to.maxPayloadSize
- maximum size of the payload.charset
- encoding to use for serializing the string data (e.g. channel
names, error strings, string data-values).protected void verify(ChannelAccessVersion version, int maxPayloadSize, java.nio.charset.Charset charset)
ChannelAccessMessage
ChannelAccessMessageCodec
.verify
in class ChannelAccessMessage
version
- protocol version to stay compatible with. This is the protocol
version of the peer the message is sent to.maxPayloadSize
- maximum size of the payload.charset
- encoding to use for serializing the string data (e.g. channel
names, error strings, string data-values).protected static ChannelAccessRepeaterRegisterMessage deserialize(ChannelAccessMessageHeader messageHeader, ByteSource byteSource)
ChannelAccessMessageCodec
.messageHeader
- CA message header.byteSource
- byte source for reading the message's payload (if any).headerOnly
is
false
).Copyright © 2014–2017 aquenos GmbH. All rights reserved.