Class AbstractMatchEntrySerializer.HeaderWriter<E,M>

java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer.HeaderWriter<E,M>
Type Parameters:
E - Match entry type
M - 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 using AbstractMatchEntrySerializer.ConstantHeaderWriter is preferable.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 header
      mask - mask as extracted from the match entry, may be null
      outBuffer - 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)