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 Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary Link icon

    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 Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • HeaderWriter Link icon

      protected HeaderWriter()
  • Method Details Link icon

    • writeHeader Link icon

      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 Link icon

      protected static final void writeHeader(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
    • writeHeader Link icon

      protected static final void writeHeader(int oxmClassCode, int oxmFieldCode, int valueLength, boolean hasMask, int extraLength, io.netty.buffer.ByteBuf outBuffer)