public abstract class UniqueMessageHandler<T extends Message> extends BaseMessageHandler<T>
Modifier | Constructor and Description |
---|---|
protected |
UniqueMessageHandler(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
Collection<Class<? extends T>> |
getSupportedTypes() |
Class<? extends T> |
readMessageType(ByteBufferView buffer)
Tries to determine the message type based on the (part of the) message available in the byte buffer.
|
decode, doDecode, doEncode, encode
public Collection<Class<? extends T>> getSupportedTypes()
public Class<? extends T> readMessageType(ByteBufferView buffer)
Protocol
buffer
- Byte buffer of arbitrary length containing (a part of) the message.
Decoding should be performed starting with the current position of the buffer.Copyright © 2016–2021. All rights reserved.