クラスの使用
org.springframework.amqp.rabbit.connection.RabbitResourceHolder
RabbitResourceHolder を使用するパッケージ
パッケージ
説明
接続に関連するクラスを提供します。
メッセージリスナーコンテナーのクラスを提供します。
org.springframework.amqp.rabbit.connection 内の RabbitResourceHolder 使用
修飾子と型メソッド説明static @Nullable RabbitResourceHolderConnectionFactoryUtils.bindResourceToTransaction(RabbitResourceHolder resourceHolder, ConnectionFactory connectionFactory, boolean synched) static RabbitResourceHolderConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed) 現在のトランザクションと同期されている RabbitMQ チャネルを取得します (存在する場合)。static RabbitResourceHolderConnectionFactoryUtils.getTransactionalResourceHolder(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed, boolean publisherConnectionIfPossible) 現在のトランザクションと同期されている RabbitMQ チャネルを取得します (存在する場合)。protected RabbitResourceHolderRabbitAccessor.getTransactionalResourceHolder()型 RabbitResourceHolder のパラメーターを持つ org.springframework.amqp.rabbit.connection のメソッド修飾子と型メソッド説明static @Nullable RabbitResourceHolderConnectionFactoryUtils.bindResourceToTransaction(RabbitResourceHolder resourceHolder, ConnectionFactory connectionFactory, boolean synched) @Nullable com.rabbitmq.client.ChannelConnectionFactoryUtils.ResourceFactory.getChannel(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切なチャネルを取得します。protected @Nullable com.rabbitmq.client.ChannelRabbitAccessor.getChannel(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切なチャネルを取得します。@Nullable ConnectionConnectionFactoryUtils.ResourceFactory.getConnection(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切な接続をフェッチします。protected @Nullable ConnectionRabbitAccessor.getConnection(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切な接続をフェッチします。static voidConnectionFactoryUtils.releaseResources(@Nullable RabbitResourceHolder resourceHolder) org.springframework.amqp.rabbit.listener 内の RabbitResourceHolder 使用
型 RabbitResourceHolder のパラメーターを持つ org.springframework.amqp.rabbit.listener のメソッド修飾子と型メソッド説明protected voidAbstractMessageListenerContainer.prepareHolderForRollback(@Nullable RabbitResourceHolder resourceHolder, RuntimeExceptionSE exception) リソースホルダーが null になることはめったにありませんが、トランザクション属性によってトランザクションが開始されなかった場合 (例: