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>
protected abstract static class AbstractMatchEntrySerializer.HeaderWriter<E,M> extends Object
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 usingAbstractMatchEntrySerializer.ConstantHeaderWriter
is preferable.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HeaderWriter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static void
writeHeader(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, int extraLength, io.netty.buffer.ByteBuf outBuffer)
protected static 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.
-
-
-
Method Detail
-
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)
-
-