public class PortMessageSerializer extends AbstractMessageSerializer<PortMessage>
Constructor and Description |
---|
PortMessageSerializer() |
Modifier and Type | Method and Description |
---|---|
protected byte |
getMessageType()
Message type getter.
|
void |
serialize(PortMessage message,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
serializeHeader
public void serialize(PortMessage message, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
serialize
in interface OFSerializer<PortMessage>
serialize
in class AbstractMessageSerializer<PortMessage>
message
- object to be serializedoutBuffer
- output bufferprotected byte getMessageType()
AbstractMessageSerializer
getMessageType
in class AbstractMessageSerializer<PortMessage>
Copyright © 2020 OpenDaylight. All rights reserved.