Class SessionXAResponseMessage

java.lang.Object
org.apache.activemq.artemis.core.protocol.core.impl.PacketImpl
org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionXAResponseMessage
All Implemented Interfaces:
Packet
Direct Known Subclasses:
SessionXAResponseMessage_V2

public class SessionXAResponseMessage extends PacketImpl
  • Field Details

    • error

      protected boolean error
    • responseCode

      protected int responseCode
    • message

      protected String message
  • Constructor Details

    • SessionXAResponseMessage

      public SessionXAResponseMessage(boolean isError, int responseCode, String message)
    • SessionXAResponseMessage

      public SessionXAResponseMessage()
  • Method Details

    • isResponse

      public boolean isResponse()
      Description copied from interface: Packet
      Returns true if this packet is being sent in response to a previously received packet.
      Specified by:
      isResponse in interface Packet
      Overrides:
      isResponse in class PacketImpl
      Returns:
      true if this packet is being sent in response to a previously received packet
    • isError

      public boolean isError()
    • getResponseCode

      public int getResponseCode()
    • getMessage

      public String getMessage()
    • encodeRest

      public void encodeRest(ActiveMQBuffer buffer)
      Overrides:
      encodeRest in class PacketImpl
    • decodeRest

      public void decodeRest(ActiveMQBuffer buffer)
      Overrides:
      decodeRest in class PacketImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class PacketImpl
    • getPacketString

      protected String getPacketString()
      Overrides:
      getPacketString in class PacketImpl
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class PacketImpl