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 type
- M- 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> 
Utility 
AbstractMatchEntrySerializer.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 SummaryConstructorsModifierConstructorDescriptionprotectedConstantHeaderWriter(int withMask, int withoutMask) protectedConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength) protectedConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength, int extraLength) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidwriteHeader(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.HeaderWriterwriteHeader, writeHeader
- 
Constructor Details- 
ConstantHeaderWriterprotected ConstantHeaderWriter(int withMask, int withoutMask) 
- 
ConstantHeaderWriterprotected ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength) 
- 
ConstantHeaderWriterprotected ConstantHeaderWriter(int oxmClassCode, int oxmFieldCode, int valueLength, int extraLength) 
 
- 
- 
Method Details- 
writeHeaderDescription copied from class:AbstractMatchEntrySerializer.HeaderWriterWrite out the header for a particular entry, containing specified mask, to the provided output buffer.- Specified by:
- writeHeaderin class- AbstractMatchEntrySerializer.HeaderWriter<E,- M> 
- Parameters:
- entry- match entry for which to write the header
- mask- mask as extracted from the match entry, may be null
- outBuffer- output buffer
 
 
-