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 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.ChannelDeprecated, 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.GetResponseDeprecated, for removal: This API element is subject to removal in a future version.com.rabbitmq.client.GetResponseReturns the value of thegetResponserecord component.final inthashCode()Returns a hash code value for this object.booleanDeprecated, for removal: This API element is subject to removal in a future version.toString()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
-
getConnection
Deprecated, for removal: This API element is subject to removal in a future version. -
getChannel
Deprecated, for removal: This API element is subject to removal in a future version. -
isTransacted
Deprecated, for removal: This API element is subject to removal in a future version. -
getGetResponse
Deprecated, for removal: This API element is subject to removal in a future version. -
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
-