public abstract class AbstractActionSerializer extends Object implements OFSerializer<Action>, HeaderSerializer<Action>
Constructor and Description |
---|
AbstractActionSerializer() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getLength()
Returns the action length.
|
protected abstract int |
getType()
Returns the numeric representation of action type.
|
void |
serialize(Action input,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
void |
serializeHeader(Action input,
io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
|
public void serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
serialize
in interface OFSerializer<Action>
input
- object to be serializedoutBuffer
- output bufferpublic void serializeHeader(Action input, io.netty.buffer.ByteBuf outBuffer)
HeaderSerializer
serializeHeader
in interface HeaderSerializer<Action>
input
- object whose headers should be serializedoutBuffer
- output bufferprotected abstract int getType()
protected abstract int getLength()
Copyright © 2020 OpenDaylight. All rights reserved.