Class RaftLogEntryDecoder

java.lang.Object
io.atomix.raft.storage.serializer.RaftLogEntryDecoder
All Implemented Interfaces:
org.agrona.sbe.DecoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageDecoderFlyweight, org.agrona.sbe.MessageFlyweight

public final class RaftLogEntryDecoder extends Object implements org.agrona.sbe.MessageDecoderFlyweight
  • Field Details

  • Constructor Details

    • RaftLogEntryDecoder

      public RaftLogEntryDecoder()
  • Method Details

    • sbeBlockLength

      public int sbeBlockLength()
      Specified by:
      sbeBlockLength in interface org.agrona.sbe.MessageFlyweight
    • sbeTemplateId

      public int sbeTemplateId()
      Specified by:
      sbeTemplateId in interface org.agrona.sbe.MessageFlyweight
    • sbeSchemaId

      public int sbeSchemaId()
      Specified by:
      sbeSchemaId in interface org.agrona.sbe.Flyweight
    • sbeSchemaVersion

      public int sbeSchemaVersion()
      Specified by:
      sbeSchemaVersion in interface org.agrona.sbe.Flyweight
    • sbeSemanticType

      public String sbeSemanticType()
      Specified by:
      sbeSemanticType in interface org.agrona.sbe.MessageFlyweight
    • buffer

      public org.agrona.DirectBuffer buffer()
      Specified by:
      buffer in interface org.agrona.sbe.Flyweight
    • initialOffset

      public int initialOffset()
    • offset

      public int offset()
      Specified by:
      offset in interface org.agrona.sbe.Flyweight
    • wrap

      public RaftLogEntryDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
      Specified by:
      wrap in interface org.agrona.sbe.MessageDecoderFlyweight
    • wrapAndApplyHeader

      public RaftLogEntryDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder)
    • sbeRewind

      public RaftLogEntryDecoder sbeRewind()
    • sbeDecodedLength

      public int sbeDecodedLength()
      Specified by:
      sbeDecodedLength in interface org.agrona.sbe.MessageDecoderFlyweight
    • encodedLength

      public int encodedLength()
      Specified by:
      encodedLength in interface org.agrona.sbe.Flyweight
    • limit

      public int limit()
      Specified by:
      limit in interface org.agrona.sbe.MessageFlyweight
    • limit

      public void limit(int limit)
      Specified by:
      limit in interface org.agrona.sbe.MessageFlyweight
    • termId

      public static int termId()
    • termSinceVersion

      public static int termSinceVersion()
    • termEncodingOffset

      public static int termEncodingOffset()
    • termEncodingLength

      public static int termEncodingLength()
    • termMetaAttribute

      public static String termMetaAttribute(MetaAttribute metaAttribute)
    • termNullValue

      public static long termNullValue()
    • termMinValue

      public static long termMinValue()
    • termMaxValue

      public static long termMaxValue()
    • term

      public long term()
    • typeId

      public static int typeId()
    • typeSinceVersion

      public static int typeSinceVersion()
    • typeEncodingOffset

      public static int typeEncodingOffset()
    • typeEncodingLength

      public static int typeEncodingLength()
    • typeMetaAttribute

      public static String typeMetaAttribute(MetaAttribute metaAttribute)
    • typeRaw

      public short typeRaw()
    • type

      public EntryType type()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendTo

      public StringBuilder appendTo(StringBuilder builder)
      Specified by:
      appendTo in interface org.agrona.sbe.MessageDecoderFlyweight
    • sbeSkip

      public RaftLogEntryDecoder sbeSkip()