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.
-
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
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. -
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. -
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 '=='. -
connection
Returns the value of theconnectionrecord component.- Returns:
- the value of the
connectionrecord component
-
channel
public com.rabbitmq.client.Channel channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
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
-