public class MatchDeserializer extends Object implements OFDeserializer<Match>, HeaderDeserializer<Match>, MatchEntryDeserializerRegistry, MatchEntryDeserializer, DeserializerRegistryInjector
Constructor and Description |
---|
MatchDeserializer(MatchPath matchPath) |
Modifier and Type | Method and Description |
---|---|
Match |
deserialize(io.netty.buffer.ByteBuf inBuffer)
Transforms byte message into POJO/DTO (of type E).
|
void |
deserializeEntry(io.netty.buffer.ByteBuf inBuffer,
MatchBuilder builder)
Transforms byte match entry message into POJO/DTO (of type E).
|
Match |
deserializeHeader(io.netty.buffer.ByteBuf inBuffer)
Deserializes a byte message headers.
|
void |
injectDeserializerRegistry(DeserializerRegistry deserializerRegistry)
Injects deserializer registry into deserializer.
|
void |
registerEntryDeserializer(MatchEntryDeserializerKey key,
MatchEntryDeserializer deserializer)
Registers match entry deserializer.
|
boolean |
unregisterEntryDeserializer(MatchEntryDeserializerKey key)
Unregisters match entry deserializer.
|
public MatchDeserializer(MatchPath matchPath)
public Match deserialize(io.netty.buffer.ByteBuf inBuffer)
OFDeserializer
deserialize
in interface OFDeserializer<Match>
inBuffer
- message as bytes in ByteBufpublic Match deserializeHeader(io.netty.buffer.ByteBuf inBuffer)
HeaderDeserializer
deserializeHeader
in interface HeaderDeserializer<Match>
inBuffer
- message as bytes in ByteBufpublic void deserializeEntry(io.netty.buffer.ByteBuf inBuffer, MatchBuilder builder)
MatchEntryDeserializer
deserializeEntry
in interface MatchEntryDeserializer
inBuffer
- message as bytes in ByteBufbuilder
- match builderpublic void registerEntryDeserializer(MatchEntryDeserializerKey key, MatchEntryDeserializer deserializer)
MatchEntryDeserializerRegistry
registerEntryDeserializer
in interface MatchEntryDeserializerRegistry
key
- used for deserializer lookupdeserializer
- deserializer instancepublic boolean unregisterEntryDeserializer(MatchEntryDeserializerKey key)
MatchEntryDeserializerRegistry
unregisterEntryDeserializer
in interface MatchEntryDeserializerRegistry
key
- used for deserializer lookuppublic void injectDeserializerRegistry(DeserializerRegistry deserializerRegistry)
DeserializerRegistryInjector
injectDeserializerRegistry
in interface DeserializerRegistryInjector
deserializerRegistry
- registry of deserializersCopyright © 2020 OpenDaylight. All rights reserved.