Class ErrorResponseEncoder

java.lang.Object
io.camunda.zeebe.transport.stream.impl.messages.ErrorResponseEncoder
All Implemented Interfaces:
org.agrona.sbe.EncoderFlyweight, org.agrona.sbe.Flyweight, org.agrona.sbe.MessageEncoderFlyweight, org.agrona.sbe.MessageFlyweight

public final class ErrorResponseEncoder extends Object implements org.agrona.sbe.MessageEncoderFlyweight
Returned whenever a request fails
  • Field Details

  • Constructor Details

    • ErrorResponseEncoder

      public ErrorResponseEncoder()
  • 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.MutableDirectBuffer buffer()
      Specified by:
      buffer in interface org.agrona.sbe.EncoderFlyweight
      Specified by:
      buffer in interface org.agrona.sbe.Flyweight
    • offset

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

      public ErrorResponseEncoder wrap(org.agrona.MutableDirectBuffer buffer, int offset)
      Specified by:
      wrap in interface org.agrona.sbe.EncoderFlyweight
    • wrapAndApplyHeader

      public ErrorResponseEncoder wrapAndApplyHeader(org.agrona.MutableDirectBuffer buffer, int offset, MessageHeaderEncoder headerEncoder)
    • 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)
    • code

      public ErrorResponseEncoder code(ErrorCode value)
    • detailsId

      public static long detailsId()
    • detailsCount

      public ErrorResponseEncoder.DetailsEncoder detailsCount(int count)
      Additional details for aggregated errors
      Parameters:
      count - of times the group will be encoded.
      Returns:
      DetailsEncoder : encoder for the group.
    • messageId

      public static int messageId()
    • messageCharacterEncoding

      public static String messageCharacterEncoding()
    • messageMetaAttribute

      public static String messageMetaAttribute(MetaAttribute metaAttribute)
    • messageHeaderLength

      public static int messageHeaderLength()
    • putMessage

      public ErrorResponseEncoder putMessage(org.agrona.DirectBuffer src, int srcOffset, int length)
    • putMessage

      public ErrorResponseEncoder putMessage(byte[] src, int srcOffset, int length)
    • message

      public ErrorResponseEncoder message(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendTo

      public StringBuilder appendTo(StringBuilder builder)