Package io.zeebe.protocol.record
Class ErrorResponseDecoder
- java.lang.Object
-
- io.zeebe.protocol.record.ErrorResponseDecoder
-
- All Implemented Interfaces:
org.agrona.sbe.DecoderFlyweight,org.agrona.sbe.Flyweight,org.agrona.sbe.MessageDecoderFlyweight,org.agrona.sbe.MessageFlyweight
public final class ErrorResponseDecoder extends Object implements org.agrona.sbe.MessageDecoderFlyweight
Standard error response
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_LENGTHstatic ByteOrderBYTE_ORDERstatic intSCHEMA_IDstatic intSCHEMA_VERSIONstatic intTEMPLATE_ID
-
Constructor Summary
Constructors Constructor Description ErrorResponseDecoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderappendTo(StringBuilder builder)org.agrona.DirectBufferbuffer()intencodedLength()ErrorCodeerrorCode()static interrorCodeEncodingLength()static interrorCodeEncodingOffset()static interrorCodeId()static StringerrorCodeMetaAttribute(MetaAttribute metaAttribute)shorterrorCodeRaw()static interrorCodeSinceVersion()StringerrorData()static StringerrorDataCharacterEncoding()static interrorDataHeaderLength()static interrorDataId()interrorDataLength()static StringerrorDataMetaAttribute(MetaAttribute metaAttribute)static interrorDataSinceVersion()intgetErrorData(byte[] dst, int dstOffset, int length)intgetErrorData(org.agrona.MutableDirectBuffer dst, int dstOffset, int length)intinitialOffset()intlimit()voidlimit(int limit)intoffset()intsbeBlockLength()intsbeSchemaId()intsbeSchemaVersion()StringsbeSemanticType()intsbeTemplateId()intskipErrorData()StringtoString()ErrorResponseDecoderwrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)ErrorResponseDecoderwrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder)voidwrapErrorData(org.agrona.DirectBuffer wrapBuffer)
-
-
-
Field Detail
-
BLOCK_LENGTH
public static final int BLOCK_LENGTH
- See Also:
- Constant Field Values
-
TEMPLATE_ID
public static final int TEMPLATE_ID
- See Also:
- Constant Field Values
-
SCHEMA_ID
public static final int SCHEMA_ID
- See Also:
- Constant Field Values
-
SCHEMA_VERSION
public static final int SCHEMA_VERSION
- See Also:
- Constant Field Values
-
BYTE_ORDER
public static final ByteOrder BYTE_ORDER
-
-
Method Detail
-
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
public String sbeSemanticType()
- Specified by:
sbeSemanticTypein interfaceorg.agrona.sbe.MessageFlyweight
-
buffer
public org.agrona.DirectBuffer buffer()
- Specified by:
bufferin interfaceorg.agrona.sbe.Flyweight
-
initialOffset
public int initialOffset()
-
offset
public int offset()
- Specified by:
offsetin interfaceorg.agrona.sbe.Flyweight- Specified by:
offsetin interfaceorg.agrona.sbe.MessageFlyweight
-
wrap
public ErrorResponseDecoder wrap(org.agrona.DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion)
- Specified by:
wrapin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
wrapAndApplyHeader
public ErrorResponseDecoder wrapAndApplyHeader(org.agrona.DirectBuffer buffer, int offset, MessageHeaderDecoder headerDecoder)
-
encodedLength
public int encodedLength()
- Specified by:
encodedLengthin interfaceorg.agrona.sbe.Flyweight
-
limit
public int limit()
-
limit
public void limit(int limit)
-
errorCodeId
public static int errorCodeId()
-
errorCodeSinceVersion
public static int errorCodeSinceVersion()
-
errorCodeEncodingOffset
public static int errorCodeEncodingOffset()
-
errorCodeEncodingLength
public static int errorCodeEncodingLength()
-
errorCodeMetaAttribute
public static String errorCodeMetaAttribute(MetaAttribute metaAttribute)
-
errorCodeRaw
public short errorCodeRaw()
-
errorCode
public ErrorCode errorCode()
-
errorDataId
public static int errorDataId()
-
errorDataSinceVersion
public static int errorDataSinceVersion()
-
errorDataCharacterEncoding
public static String errorDataCharacterEncoding()
-
errorDataMetaAttribute
public static String errorDataMetaAttribute(MetaAttribute metaAttribute)
-
errorDataHeaderLength
public static int errorDataHeaderLength()
-
errorDataLength
public int errorDataLength()
-
skipErrorData
public int skipErrorData()
-
getErrorData
public int getErrorData(org.agrona.MutableDirectBuffer dst, int dstOffset, int length)
-
getErrorData
public int getErrorData(byte[] dst, int dstOffset, int length)
-
wrapErrorData
public void wrapErrorData(org.agrona.DirectBuffer wrapBuffer)
-
errorData
public String errorData()
-
appendTo
public StringBuilder appendTo(StringBuilder builder)
- Specified by:
appendToin interfaceorg.agrona.sbe.MessageDecoderFlyweight
-
-