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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappendTo(StringBuilder builder) org.agrona.DirectBufferbuffer()intintlimit()voidlimit(int limit) intoffset()intintintintsbeSkip()intlongterm()static intstatic intstatic inttermId()static longstatic StringtermMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic inttoString()type()static intstatic intstatic inttypeId()static StringtypeMetaAttribute(MetaAttribute metaAttribute) shorttypeRaw()static intwrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder)
-
Field Details
-
BLOCK_LENGTH
public static final int BLOCK_LENGTH- See Also:
-
TEMPLATE_ID
public static final int TEMPLATE_ID- See Also:
-
SCHEMA_ID
public static final int SCHEMA_ID- See Also:
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION- See Also:
-
SEMANTIC_VERSION
- See Also:
-
BYTE_ORDER
-
-
Constructor Details
-
RaftLogEntryDecoder
public RaftLogEntryDecoder()
-
-
Method Details
-
sbeBlockLength
public int sbeBlockLength()- Specified by:
sbeBlockLengthin interfaceorg.agrona.sbe.MessageFlyweight
-
sbeTemplateId
public int sbeTemplateId()- Specified by:
sbeTemplateIdin interfaceorg.agrona.sbe.MessageFlyweight
-
sbeSchemaId
public int sbeSchemaId()- Specified by:
sbeSchemaIdin interfaceorg.agrona.sbe.Flyweight
-
sbeSchemaVersion
public int sbeSchemaVersion()- Specified by:
sbeSchemaVersionin interfaceorg.agrona.sbe.Flyweight
-
sbeSemanticType
- Specified by:
sbeSemanticTypein interfaceorg.agrona.sbe.MessageFlyweight
-
buffer
public org.agrona.DirectBuffer buffer()- Specified by:
bufferin interfaceorg.agrona.sbe.Flyweight
-
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
public RaftLogEntryDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) - Specified by:
wrapin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
wrapAndApplyHeader
public RaftLogEntryDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder) -
sbeRewind
-
sbeDecodedLength
public int sbeDecodedLength()- Specified by:
sbeDecodedLengthin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
actingVersion
public int actingVersion() -
encodedLength
public int encodedLength()- Specified by:
encodedLengthin interfaceorg.agrona.sbe.Flyweight
-
limit
public int limit()- Specified by:
limitin interfaceorg.agrona.sbe.MessageFlyweight
-
limit
public void limit(int limit) - Specified by:
limitin interfaceorg.agrona.sbe.MessageFlyweight
-
termId
public static int termId() -
termSinceVersion
public static int termSinceVersion() -
termEncodingOffset
public static int termEncodingOffset() -
termEncodingLength
public static int termEncodingLength() -
termMetaAttribute
-
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
-
typeRaw
public short typeRaw() -
type
-
toString
-
appendTo
- Specified by:
appendToin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
sbeSkip
-