Class EventBusMessageEncoder
java.lang.Object
com.iohao.net.sbe.EventBusMessageEncoder
EventBusMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendTo(StringBuilder builder) org.agrona.MutableDirectBufferbuffer()static intstatic intdataId()static StringdataMetaAttribute(MetaAttribute metaAttribute) intintlimit()voidlimit(int limit) intoffset()putData(byte[] src, int srcOffset, int length) putData(org.agrona.DirectBuffer src, int srcOffset, int length) putTopic(byte[] src, int srcOffset, int length) putTopic(org.agrona.DirectBuffer src, int srcOffset, int length) putTraceId(byte[] src, int srcOffset) intintintintserverId(int value) static intstatic intstatic intstatic intstatic StringserverIdMetaAttribute(MetaAttribute metaAttribute) static intstatic intstatic intthreadIndex(long value) static intstatic intstatic intstatic longstatic StringthreadIndexMetaAttribute(MetaAttribute metaAttribute) static longstatic longstatic intstatic Stringstatic intstatic inttopicId()static StringtopicMetaAttribute(MetaAttribute metaAttribute) toString()traceId(int index, byte value) traceId(CharSequence src) static Stringstatic intstatic intstatic intstatic intstatic bytestatic StringtraceIdMetaAttribute(MetaAttribute metaAttribute) static bytestatic bytestatic intwrap(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
-
EventBusMessageEncoder
public EventBusMessageEncoder()
-
-
Method Details
-
sbeBlockLength
public int sbeBlockLength() -
sbeTemplateId
public int sbeTemplateId() -
sbeSchemaId
public int sbeSchemaId() -
sbeSchemaVersion
public int sbeSchemaVersion() -
sbeSemanticType
-
buffer
public org.agrona.MutableDirectBuffer buffer() -
offset
public int offset() -
wrap
-
wrapAndApplyHeader
public EventBusMessageEncoder wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder) -
encodedLength
public int encodedLength() -
limit
public int limit() -
limit
public void limit(int limit) -
serverIdId
public static int serverIdId() -
serverIdSinceVersion
public static int serverIdSinceVersion() -
serverIdEncodingOffset
public static int serverIdEncodingOffset() -
serverIdEncodingLength
public static int serverIdEncodingLength() -
serverIdMetaAttribute
-
serverIdNullValue
public static int serverIdNullValue() -
serverIdMinValue
public static int serverIdMinValue() -
serverIdMaxValue
public static int serverIdMaxValue() -
serverId
-
threadIndexId
public static int threadIndexId() -
threadIndexSinceVersion
public static int threadIndexSinceVersion() -
threadIndexEncodingOffset
public static int threadIndexEncodingOffset() -
threadIndexEncodingLength
public static int threadIndexEncodingLength() -
threadIndexMetaAttribute
-
threadIndexNullValue
public static long threadIndexNullValue() -
threadIndexMinValue
public static long threadIndexMinValue() -
threadIndexMaxValue
public static long threadIndexMaxValue() -
threadIndex
-
traceIdId
public static int traceIdId() -
traceIdSinceVersion
public static int traceIdSinceVersion() -
traceIdEncodingOffset
public static int traceIdEncodingOffset() -
traceIdEncodingLength
public static int traceIdEncodingLength() -
traceIdMetaAttribute
-
traceIdNullValue
public static byte traceIdNullValue() -
traceIdMinValue
public static byte traceIdMinValue() -
traceIdMaxValue
public static byte traceIdMaxValue() -
traceIdLength
public static int traceIdLength() -
traceId
-
traceIdCharacterEncoding
-
putTraceId
-
traceId
-
traceId
-
topicId
public static int topicId() -
topicCharacterEncoding
-
topicMetaAttribute
-
topicHeaderLength
public static int topicHeaderLength() -
putTopic
-
putTopic
-
topic
-
dataId
public static int dataId() -
dataMetaAttribute
-
dataHeaderLength
public static int dataHeaderLength() -
putData
-
putData
-
toString
-
appendTo
-