Record Class AmqpMessageSource.AmqpAckInfo
java.lang.Object
java.lang.Record
org.springframework.integration.amqp.inbound.AmqpMessageSource.AmqpAckInfo
- Record Components:
connection
- theConnection
to usechannel
- theChannel
to usetransacted
- if channel is transactedgetResponse
- theGetResponse
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
ConstructorsConstructorDescriptionAmqpAckInfo
(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse) Creates an instance of aAmqpAckInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.rabbitmq.client.Channel
channel()
Returns the value of thechannel
record component.Returns the value of theconnection
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 thegetResponse
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Deprecated, for removal: This API element is subject to removal in a future version.toString()
Returns a string representation of this record class.boolean
Returns the value of thetransacted
record component.
-
Constructor Details
-
AmqpAckInfo
public AmqpAckInfo(Connection connection, com.rabbitmq.client.Channel channel, boolean transacted, com.rabbitmq.client.GetResponse getResponse) Creates an instance of aAmqpAckInfo
record class.- Parameters:
connection
- the value for theconnection
record componentchannel
- the value for thechannel
record componenttransacted
- the value for thetransacted
record componentgetResponse
- the value for thegetResponse
record 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 thecompare
method from their corresponding wrapper classes. -
connection
Returns the value of theconnection
record component.- Returns:
- the value of the
connection
record component
-
channel
-
transacted
public boolean transacted()Returns the value of thetransacted
record component.- Returns:
- the value of the
transacted
record component
-
getResponse
public com.rabbitmq.client.GetResponse getResponse()Returns the value of thegetResponse
record component.- Returns:
- the value of the
getResponse
record component
-