Uses of Class
org.springframework.amqp.rabbit.connection.RabbitResourceHolder
Packages that use RabbitResourceHolder
Package
Description
Provides classes related to connections.
Provides classes for message listener containers.
-
Uses of RabbitResourceHolder in org.springframework.amqp.rabbit.connection
Methods in org.springframework.amqp.rabbit.connection that return RabbitResourceHolderModifier and TypeMethodDescriptionstatic @Nullable RabbitResourceHolder
ConnectionFactoryUtils.bindResourceToTransaction
(RabbitResourceHolder resourceHolder, ConnectionFactory connectionFactory, boolean synched) static RabbitResourceHolder
ConnectionFactoryUtils.getTransactionalResourceHolder
(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed) Obtain a RabbitMQ Channel that is synchronized with the current transaction, if any.static RabbitResourceHolder
ConnectionFactoryUtils.getTransactionalResourceHolder
(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed, boolean publisherConnectionIfPossible) Obtain a RabbitMQ Channel that is synchronized with the current transaction, if any.protected RabbitResourceHolder
RabbitAccessor.getTransactionalResourceHolder()
Methods in org.springframework.amqp.rabbit.connection with parameters of type RabbitResourceHolderModifier and TypeMethodDescriptionstatic @Nullable RabbitResourceHolder
ConnectionFactoryUtils.bindResourceToTransaction
(RabbitResourceHolder resourceHolder, ConnectionFactory connectionFactory, boolean synched) @Nullable com.rabbitmq.client.Channel
ConnectionFactoryUtils.ResourceFactory.getChannel
(RabbitResourceHolder holder) Fetch an appropriate Channel from the given RabbitResourceHolder.protected @Nullable com.rabbitmq.client.Channel
RabbitAccessor.getChannel
(RabbitResourceHolder holder) Fetch an appropriate Channel from the given RabbitResourceHolder.@Nullable Connection
ConnectionFactoryUtils.ResourceFactory.getConnection
(RabbitResourceHolder holder) Fetch an appropriate Connection from the given RabbitResourceHolder.protected @Nullable Connection
RabbitAccessor.getConnection
(RabbitResourceHolder holder) Fetch an appropriate Connection from the given RabbitResourceHolder.static void
ConnectionFactoryUtils.releaseResources
(@Nullable RabbitResourceHolder resourceHolder) -
Uses of RabbitResourceHolder in org.springframework.amqp.rabbit.listener
Methods in org.springframework.amqp.rabbit.listener with parameters of type RabbitResourceHolderModifier and TypeMethodDescriptionprotected void
AbstractMessageListenerContainer.prepareHolderForRollback
(@Nullable RabbitResourceHolder resourceHolder, RuntimeException exception) A null resource holder is rare, but possible if the transaction attribute caused no transaction to be started (e.g.