Class AbstractMatchEntrySerializer.HeaderWriter<E,M>
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer.HeaderWriter<E,M>
- Type Parameters:
E
- Match entry typeM
- Match entry mask type, use Void a mask is not applicable
- Direct Known Subclasses:
AbstractMatchEntrySerializer.ConstantHeaderWriter
- Enclosing class:
AbstractMatchEntrySerializer<E,
M>
Base class supporting writing out a particular match entry's header. This class should be subclassed only
in case the header contents depends on the match entry content in a more dynamic fashion than the presence
or absence of the mask. In all other cases using
AbstractMatchEntrySerializer.ConstantHeaderWriter
is preferable.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static final void
writeHeader
(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, int extraLength, io.netty.buffer.ByteBuf outBuffer) protected static final void
writeHeader
(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, io.netty.buffer.ByteBuf outBuffer) protected abstract void
writeHeader
(@NonNull E entry, @Nullable M mask, @NonNull io.netty.buffer.ByteBuf outBuffer) Write out the header for a particular entry, containing specified mask, to the provided output buffer.
-
Constructor Details
-
HeaderWriter
protected HeaderWriter()
-
-
Method Details
-
writeHeader
protected abstract void writeHeader(@NonNull E entry, @Nullable M mask, @NonNull io.netty.buffer.ByteBuf outBuffer) Write out the header for a particular entry, containing specified mask, to the provided output buffer.- Parameters:
entry
- match entry for which to write the headermask
- mask as extracted from the match entry, may be nulloutBuffer
- output buffer
-
writeHeader
protected static final void writeHeader(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, io.netty.buffer.ByteBuf outBuffer) -
writeHeader
protected static final void writeHeader(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, int extraLength, io.netty.buffer.ByteBuf outBuffer)
-