public class MatchSerializer extends Object implements OFSerializer<Match>, HeaderSerializer<Match>, MatchEntrySerializerRegistry, SerializerRegistryInjector
Constructor and Description |
---|
MatchSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
injectSerializerRegistry(SerializerRegistry serializerRegistry)
Injects serializer registry.
|
void |
registerEntrySerializer(MatchEntrySerializerKey key,
MatchEntrySerializer serializer)
Registers match entry serializer.
|
void |
serialize(Match match,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
void |
serializeHeader(Match match,
io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
|
boolean |
unregisterEntrySerializer(MatchEntrySerializerKey key)
Unregisters match entry serializer.
|
public void serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
serialize
in interface OFSerializer<Match>
match
- object to be serializedoutBuffer
- output bufferpublic void serializeHeader(Match match, io.netty.buffer.ByteBuf outBuffer)
HeaderSerializer
serializeHeader
in interface HeaderSerializer<Match>
match
- object whose headers should be serializedoutBuffer
- output bufferpublic void injectSerializerRegistry(SerializerRegistry serializerRegistry)
SerializerRegistryInjector
injectSerializerRegistry
in interface SerializerRegistryInjector
serializerRegistry
- registry instancepublic void registerEntrySerializer(MatchEntrySerializerKey key, MatchEntrySerializer serializer)
MatchEntrySerializerRegistry
registerEntrySerializer
in interface MatchEntrySerializerRegistry
key
- used for deserializer lookupserializer
- serializer instancepublic boolean unregisterEntrySerializer(MatchEntrySerializerKey key)
MatchEntrySerializerRegistry
unregisterEntrySerializer
in interface MatchEntrySerializerRegistry
key
- used for serializer lookupCopyright © 2020 OpenDaylight. All rights reserved.