Class ApplicationEntryEncoder
java.lang.Object
io.atomix.raft.storage.serializer.ApplicationEntryEncoder
- All Implemented Interfaces:
org.agrona.sbe.EncoderFlyweight,org.agrona.sbe.Flyweight,org.agrona.sbe.MessageEncoderFlyweight,org.agrona.sbe.MessageFlyweight
public final class ApplicationEntryEncoder
extends Object
implements org.agrona.sbe.MessageEncoderFlyweight
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder builder) static intstatic intstatic StringapplicationDataMetaAttribute(MetaAttribute metaAttribute) org.agrona.MutableDirectBufferbuffer()inthighestAsqn(long value) static intstatic intstatic intstatic longstatic StringhighestAsqnMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintlimit()voidlimit(int limit) lowestAsqn(long value) static intstatic intstatic intstatic longstatic StringlowestAsqnMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intintoffset()putApplicationData(byte[] src, int srcOffset, int length) putApplicationData(org.agrona.DirectBuffer src, int srcOffset, int length) intintintinttoString()wrap(org.agrona.MutableDirectBuffer buffer, int offset) wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder)
-
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
-
ApplicationEntryEncoder
public ApplicationEntryEncoder()
-
-
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.MutableDirectBuffer buffer()- Specified by:
bufferin interfaceorg.agrona.sbe.EncoderFlyweight- Specified by:
bufferin interfaceorg.agrona.sbe.Flyweight
-
offset
public int offset()- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight
-
wrap
- Specified by:
wrapin interfaceorg.agrona.sbe.EncoderFlyweight
-
wrapAndApplyHeader
public ApplicationEntryEncoder wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder) -
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
-
lowestAsqnId
public static int lowestAsqnId() -
lowestAsqnSinceVersion
public static int lowestAsqnSinceVersion() -
lowestAsqnEncodingOffset
public static int lowestAsqnEncodingOffset() -
lowestAsqnEncodingLength
public static int lowestAsqnEncodingLength() -
lowestAsqnMetaAttribute
-
lowestAsqnNullValue
public static long lowestAsqnNullValue() -
lowestAsqnMinValue
public static long lowestAsqnMinValue() -
lowestAsqnMaxValue
public static long lowestAsqnMaxValue() -
lowestAsqn
-
highestAsqnId
public static int highestAsqnId() -
highestAsqnSinceVersion
public static int highestAsqnSinceVersion() -
highestAsqnEncodingOffset
public static int highestAsqnEncodingOffset() -
highestAsqnEncodingLength
public static int highestAsqnEncodingLength() -
highestAsqnMetaAttribute
-
highestAsqnNullValue
public static long highestAsqnNullValue() -
highestAsqnMinValue
public static long highestAsqnMinValue() -
highestAsqnMaxValue
public static long highestAsqnMaxValue() -
highestAsqn
-
applicationDataId
public static int applicationDataId() -
applicationDataMetaAttribute
-
applicationDataHeaderLength
public static int applicationDataHeaderLength() -
putApplicationData
public ApplicationEntryEncoder putApplicationData(org.agrona.DirectBuffer src, int srcOffset, int length) -
putApplicationData
-
toString
-
appendTo
-