Class ErrorResponseDecoder

java.lang.Object
io.camunda.zeebe.transport.stream.impl.messages.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
Returned whenever a request fails
  • Field Details

  • Constructor Details

    • ErrorResponseDecoder

      public ErrorResponseDecoder()
  • 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
    • offset

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

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

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

      public ErrorResponseDecoder sbeRewind()
    • sbeDecodedLength

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

      public int actingVersion()
    • 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
    • codeId

      public static int codeId()
    • codeSinceVersion

      public static int codeSinceVersion()
    • codeEncodingOffset

      public static int codeEncodingOffset()
    • codeEncodingLength

      public static int codeEncodingLength()
    • codeMetaAttribute

      public static String codeMetaAttribute(MetaAttribute metaAttribute)
    • codeRaw

      public short codeRaw()
    • code

      public ErrorCode code()
    • detailsDecoderId

      public static long detailsDecoderId()
    • detailsDecoderSinceVersion

      public static int detailsDecoderSinceVersion()
    • details

      Additional details for aggregated errors
      Returns:
      DetailsDecoder : Additional details for aggregated errors
    • messageId

      public static int messageId()
    • messageSinceVersion

      public static int messageSinceVersion()
    • messageCharacterEncoding

      public static String messageCharacterEncoding()
    • messageMetaAttribute

      public static String messageMetaAttribute(MetaAttribute metaAttribute)
    • messageHeaderLength

      public static int messageHeaderLength()
    • messageLength

      public int messageLength()
    • skipMessage

      public int skipMessage()
    • getMessage

      public int getMessage(org.agrona.MutableDirectBuffer dst, int dstOffset, int length)
    • getMessage

      public int getMessage(byte[] dst, int dstOffset, int length)
    • wrapMessage

      public void wrapMessage(org.agrona.DirectBuffer wrapBuffer)
    • message

      public String message()
    • 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 ErrorResponseDecoder sbeSkip()