Class AbstractMatchEntrySerializer.ConstantHeaderWriter<E,M>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer.HeaderWriter<E,M>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer.ConstantHeaderWriter<E,M>
-
- Type Parameters:
E
- Match entry typeM
- Match entry mask type, use Void a mask is not applicable
- Enclosing class:
- AbstractMatchEntrySerializer<E,M>
protected static final class AbstractMatchEntrySerializer.ConstantHeaderWriter<E,M> extends AbstractMatchEntrySerializer.HeaderWriter<E,M>
UtilityAbstractMatchEntrySerializer.HeaderWriter
optimized for cases where the header does not depend on the actual entry content beyond presence/absence of a mask. This class pre-computes the possible header values for masked/unmasked cases and stores them internally for reuse.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstantHeaderWriter(int withMask, int withoutMask)
protected
ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength)
protected
ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength, int extraLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeHeader(E entry, M mask, io.netty.buffer.ByteBuf outBuffer)
Write out the header for a particular entry, containing specified mask, to the provided output buffer.-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer.HeaderWriter
writeHeader, writeHeader
-
-
-
-
Constructor Detail
-
ConstantHeaderWriter
protected ConstantHeaderWriter(int withMask, int withoutMask)
-
ConstantHeaderWriter
protected ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength)
-
ConstantHeaderWriter
protected ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength, int extraLength)
-
-
Method Detail
-
writeHeader
protected void writeHeader(E entry, M mask, io.netty.buffer.ByteBuf outBuffer)
Description copied from class:AbstractMatchEntrySerializer.HeaderWriter
Write out the header for a particular entry, containing specified mask, to the provided output buffer.- Specified by:
writeHeader
in classAbstractMatchEntrySerializer.HeaderWriter<E,M>
- Parameters:
entry
- match entry for which to write the headermask
- mask as extracted from the match entry, may be nulloutBuffer
- output buffer
-
-