Record Class AmqpMessageSource.AmqpAckInfo

java.lang.Object
java.lang.Record
org.springframework.integration.amqp.inbound.AmqpMessageSource.AmqpAckInfo
Record Components:
connection - the Connection to use
channel - the Channel to use
transacted - if channel is transacted
getResponse - the GetResponse to use
Enclosing class:
AmqpMessageSource

public static record AmqpMessageSource.AmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse) extends Record
Information for building an AmqpAckCallback.
Since:
5.0.1
Author:
Gary Russell
  • Constructor Summary

    Constructors
    Constructor
    Description
    AmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse)
    Creates an instance of a AmqpAckInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.rabbitmq.client.Channel
    Returns the value of the channel record component.
    Returns the value of the connection record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    com.rabbitmq.client.Channel
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    com.rabbitmq.client.GetResponse
    Deprecated, for removal: This API element is subject to removal in a future version.
    com.rabbitmq.client.GetResponse
    Returns the value of the getResponse record component.
    final int
    Returns a hash code value for this object.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a string representation of this record class.
    boolean
    Returns the value of the transacted record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AmqpAckInfo

      public AmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse)
      Creates an instance of a AmqpAckInfo record class.
      Parameters:
      connection - the value for the connection record component
      channel - the value for the channel record component
      transacted - the value for the transacted record component
      getResponse - the value for the getResponse record component
  • Method Details

    • getConnection

      @Deprecated(since="7.0", forRemoval=true) public Connection getConnection()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getChannel

      @Deprecated(since="7.0", forRemoval=true) public com.rabbitmq.client.Channel getChannel()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isTransacted

      @Deprecated(since="7.0", forRemoval=true) public boolean isTransacted()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getGetResponse

      @Deprecated(since="7.0", forRemoval=true) public com.rabbitmq.client.GetResponse getGetResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • connection

      public Connection connection()
      Returns the value of the connection record component.
      Returns:
      the value of the connection record component
    • channel

      public com.rabbitmq.client.Channel channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component
    • transacted

      public boolean transacted()
      Returns the value of the transacted record component.
      Returns:
      the value of the transacted record component
    • getResponse

      public com.rabbitmq.client.GetResponse getResponse()
      Returns the value of the getResponse record component.
      Returns:
      the value of the getResponse record component