Record Class AmqpMessageSource.AmqpAckInfo
java.lang.Object
java.lang.Record
org.springframework.integration.amqp.inbound.AmqpMessageSource.AmqpAckInfo
- Record Components:
connection- theConnectionto usechannel- theChannelto usetransacted- if the channel is transactedgetResponse- theGetResponseto 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
ConstructorsConstructorDescriptionAmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse) Creates an instance of aAmqpAckInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.rabbitmq.client.Channelchannel()Returns the value of thechannelrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.com.rabbitmq.client.GetResponseReturns the value of thegetResponserecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransactedrecord component.
-
Constructor Details
-
AmqpAckInfo
public AmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse) Creates an instance of aAmqpAckInforecord class.- Parameters:
connection- the value for theconnectionrecord componentchannel- the value for thechannelrecord componenttransacted- the value for thetransactedrecord componentgetResponse- the value for thegetResponserecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
channel
-
transacted
public boolean transacted()Returns the value of thetransactedrecord component.- Returns:
- the value of the
transactedrecord component
-
getResponse
public com.rabbitmq.client.GetResponse getResponse()Returns the value of thegetResponserecord component.- Returns:
- the value of the
getResponserecord component
-