インターフェースの使用
org.springframework.amqp.rabbit.connection.ConnectionFactory
ConnectionFactory を使用するパッケージ
パッケージ
説明
Spring Rabbit のトップレベルクラスを提供します。
Rabbit XML 名前空間をサポートするクラスを提供します。
接続に関連するクラスを提供します。
Spring Rabbit のコアクラスを提供します。
メッセージリスナーコンテナーのクラスを提供します。
Spring AMQP アプリケーションをテストするためのクラス。
Spring Rabbit のトランザクションをサポートするクラスを提供します。
org.springframework.amqp.rabbit 内の ConnectionFactory 使用
型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit のコンストラクター修飾子コンストラクター説明AsyncRabbitTemplate
(ConnectionFactory connectionFactory, StringSE exchange, StringSE routingKey) 提供された引数を使用してインスタンスを構築します。AsyncRabbitTemplate
(ConnectionFactory connectionFactory, StringSE exchange, StringSE routingKey, StringSE replyQueue) 提供された引数を使用してインスタンスを構築します。AsyncRabbitTemplate
(ConnectionFactory connectionFactory, StringSE exchange, StringSE routingKey, StringSE replyQueue, StringSE replyAddress) 提供された引数を使用してインスタンスを構築します。org.springframework.amqp.rabbit.config 内の ConnectionFactory 使用
型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.config のメソッド修飾子と型メソッド説明void
AbstractRabbitListenerContainerFactory.setConnectionFactory
(ConnectionFactory connectionFactory) void
ListenerContainerFactoryBean.setConnectionFactory
(ConnectionFactory connectionFactory) org.springframework.amqp.rabbit.connection 内の ConnectionFactory 使用
修飾子と型クラス説明class
class
ルックアップキーに基づいてAbstractRoutingConnectionFactory.createConnection()
呼び出しをさまざまなターゲット ConnectionFactories のいずれかにルーティングする抽象ConnectionFactory
実装。class
(キャッシュモードがCachingConnectionFactory.CacheMode.CHANNEL
(デフォルト) の場合、すべてのCachingConnectionFactory.createConnection()
呼び出しから同じ接続を返し、Connection.close()
への呼び出しを無視してChannel
をキャッシュするConnectionFactory
実装。class
キューが配置されているノードを決定し、そのノードに直接接続するファクトリを返すRoutingConnectionFactory
。class
Apache Pool2GenericObjectPool
(トランザクションチャネル用に 1 つ、非トランザクションチャネル用に 1 つ) を使用してチャネルをキャッシュする非常にシンプルな接続ファクトリ。class
このConnectionFactory
のインスタンスのキーによって、スレッドにバインドされたリソースから現在のConnectionFactory
のlookupKey
を取得するAbstractRoutingConnectionFactory
実装。class
スレッドごとにチャネルをキャッシュする非常に単純な接続ファクトリ。修飾子と型メソッド説明protected ConnectionFactory
LocalizedQueueConnectionFactory.createConnectionFactory
(StringSE address, StringSE node) アドレス専用の接続ファクトリを作成します。protected ConnectionFactory
AbstractRoutingConnectionFactory.determineTargetConnectionFactory()
現在のターゲットConnectionFactory
を取得します。RabbitAccessor.getConnectionFactory()
AbstractConnectionFactory.getPublisherConnectionFactory()
default ConnectionFactory
ConnectionFactory.getPublisherConnectionFactory()
パブリッシャー用に個別の接続ファクトリを返します (実装されている場合)。AbstractRoutingConnectionFactory.getTargetConnectionFactory
(ObjectSE key) LocalizedQueueConnectionFactory.getTargetConnectionFactory
(ObjectSE key) RoutingConnectionFactory.getTargetConnectionFactory
(ObjectSE key) 指定されたルックアップキーにバインドされたConnectionFactory
を返します。存在しない場合は null を返します。ファクトリを検索または作成します。default ConnectionFactory
NodeLocator.locate
(StringSE[] adminUris, MapSE<StringSE, StringSE> nodeToAddress, StringSE vhost, StringSE username, StringSE password, StringSE queue, FactoryFinder factoryFunction) キューのリーダーノードの接続ファクトリを返します。protected ConnectionFactory
AbstractRoutingConnectionFactory.removeTargetConnectionFactory
(ObjectSE key) 指定された検索キーに関連付けられたConnectionFactory
を削除して返します。型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.connection のメソッド修飾子と型メソッド説明protected void
AbstractRoutingConnectionFactory.addTargetConnectionFactory
(ObjectSE key, ConnectionFactory connectionFactory) 指定されたConnectionFactory
を追加し、指定されたルックアップキーに関連付けます。static RabbitResourceHolder
ConnectionFactoryUtils.bindResourceToTransaction
(RabbitResourceHolder resourceHolder, ConnectionFactory connectionFactory, boolean synched) static Connection
ConnectionFactoryUtils.createConnection
(ConnectionFactory connectionFactory, boolean publisherConnectionIfPossible) この接続ファクトリおよび / またはそのパブリッシャーファクトリとの接続を作成します。static com.rabbitmq.client.Channel
ConsumerChannelRegistry.getConsumerChannel
(ConnectionFactory connectionFactory) registerConsumerChannel を参照してください。static int
RabbitUtils.getMaxFrame
(ConnectionFactory connectionFactory) ネゴシエートされた frame_max を返します。static RabbitResourceHolder
ConnectionFactoryUtils.getTransactionalResourceHolder
(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed) 現在のトランザクションと同期されている RabbitMQ チャネルを取得します (存在する場合)。static RabbitResourceHolder
ConnectionFactoryUtils.getTransactionalResourceHolder
(ConnectionFactory connectionFactory, boolean synchedLocalTransactionAllowed, boolean publisherConnectionIfPossible) 現在のトランザクションと同期されている RabbitMQ チャネルを取得します (存在する場合)。static boolean
ConnectionFactoryUtils.isChannelTransactional
(com.rabbitmq.client.Channel channel, ConnectionFactory connectionFactory) 指定された RabbitMQ チャネルがトランザクション対応であるかどうか、つまり、Spring のトランザクション機能によって現在のスレッドにバインドされているかどうかを判断します。ConnectionNameStrategy.obtainNewConnectionName
(ConnectionFactory connectionFactory) SimplePropertyValueConnectionNameStrategy.obtainNewConnectionName
(ConnectionFactory connectionFactory) static void
ConsumerChannelRegistry.registerConsumerChannel
(com.rabbitmq.client.Channel channel, ConnectionFactory connectionFactory) リスナーコンテナーが RabbitTransactionManager を使用するように構成されている場合、コンシューマーのチャネルはここに登録され、トランザクションが実際に開始されたときにバインドされたリソースとして使用されます。static void
ConnectionFactoryUtils.registerDeliveryTag
(ConnectionFactory connectionFactory, com.rabbitmq.client.Channel channel, LongSE tag) void
RabbitAccessor.setConnectionFactory
(ConnectionFactory connectionFactory) RabbitMQConnections
の取得に使用する ConnectionFactory を設定します。void
AbstractRoutingConnectionFactory.setDefaultTargetConnectionFactory
(ConnectionFactory defaultTargetConnectionFactory) デフォルトのターゲットConnectionFactory
を指定します(存在する場合)。型 ConnectionFactory の型引数を持つ org.springframework.amqp.rabbit.connection のメソッドパラメーター修飾子と型メソッド説明void
AbstractRoutingConnectionFactory.setTargetConnectionFactories
(MapSE<ObjectSE, ConnectionFactory> targetConnectionFactories) 検索キーをキーとして、ターゲット ConnectionFactories のマップを指定します。型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.connection のコンストラクター修飾子コンストラクター説明ConnectionFactoryContextWrapper
(ConnectionFactory connectionFactory) LocalizedQueueConnectionFactory
(ConnectionFactory defaultConnectionFactory, StringSE[] addresses, StringSE[] adminUris, StringSE[] nodes, StringSE vhost, StringSE username, StringSE password, boolean useSSL, StringSE keyStore, StringSE trustStore, StringSE keyStorePassPhrase, StringSE trustStorePassPhrase) LocalizedQueueConnectionFactory
(ConnectionFactory defaultConnectionFactory, StringSE[] addresses, StringSE[] adminUris, StringSE[] nodes, StringSE vhost, StringSE username, StringSE password, boolean useSSL, Resource sslPropertiesLocation) LocalizedQueueConnectionFactory
(ConnectionFactory defaultConnectionFactory, MapSE<StringSE, StringSE> nodeToAddress, StringSE[] adminUris, StringSE vhost, StringSE username, StringSE password, boolean useSSL, StringSE keyStore, StringSE trustStore, StringSE keyStorePassPhrase, StringSE trustStorePassPhrase) LocalizedQueueConnectionFactory
(ConnectionFactory defaultConnectionFactory, MapSE<StringSE, StringSE> nodeToAddress, StringSE[] adminUris, StringSE vhost, StringSE username, StringSE password, boolean useSSL, Resource sslPropertiesLocation) org.springframework.amqp.rabbit.core 内の ConnectionFactory 使用
修飾子と型メソッド説明final ConnectionFactory
RabbitGatewaySupport.getConnectionFactory()
RabbitOperations.getConnectionFactory()
この操作の接続ファクトリを返します。型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.core のメソッド修飾子と型メソッド説明protected RabbitTemplate
RabbitGatewaySupport.createRabbitTemplate
(ConnectionFactory connectionFactory) 指定された ConnectionFactory の RabbitTemplate を作成します。final void
RabbitGatewaySupport.setConnectionFactory
(ConnectionFactory connectionFactory) ゲートウェイが使用する Rabbit 接続ファクトリを設定します。final void
RabbitTemplate.setConnectionFactory
(ConnectionFactory connectionFactory) 型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.core のコンストラクター修飾子コンストラクター説明BatchingRabbitTemplate
(ConnectionFactory connectionFactory, BatchingStrategy batchingStrategy, TaskScheduler scheduler) 指定されたパラメーターを使用してインスタンスを作成します。BrokerEventListener
(ConnectionFactory connectionFactory, StringSE... eventKeys) 提供された接続ファクトリとイベントキーを使用してインスタンスを構築します。RabbitAdmin
(ConnectionFactory connectionFactory) 提供されたConnectionFactory
を使用してインスタンスを構築します。RabbitTemplate
(ConnectionFactory connectionFactory) デフォルトの戦略と設定で rabbit テンプレートを作成します。org.springframework.amqp.rabbit.listener 内の ConnectionFactory 使用
型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.listener のコンストラクター修飾子コンストラクター説明BlockingQueueConsumer
(ConnectionFactory connectionFactory, MessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, boolean transactional, int prefetchCount, boolean defaultRequeueRejected, StringSE... queues) コンシューマーを作成します。BlockingQueueConsumer
(ConnectionFactory connectionFactory, MessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, boolean transactional, int prefetchCount, boolean defaultRequeueRejected, MapSE<StringSE, ObjectSE> consumerArgs, boolean noLocal, boolean exclusive, StringSE... queues) コンシューマーを作成します。BlockingQueueConsumer
(ConnectionFactory connectionFactory, MessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, boolean transactional, int prefetchCount, boolean defaultRequeueRejected, MapSE<StringSE, ObjectSE> consumerArgs, boolean exclusive, StringSE... queues) コンシューマーを作成します。BlockingQueueConsumer
(ConnectionFactory connectionFactory, MessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, boolean transactional, int prefetchCount, boolean defaultRequeueRejected, MapSE<StringSE, ObjectSE> consumerArgs, StringSE... queues) コンシューマーを作成します。BlockingQueueConsumer
(ConnectionFactory connectionFactory, MessagePropertiesConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, boolean transactional, int prefetchCount, StringSE... queues) コンシューマーを作成します。DirectMessageListenerContainer
(ConnectionFactory connectionFactory) 提供された接続ファクトリでインスタンスを作成します。DirectReplyToMessageListenerContainer
(ConnectionFactory connectionFactory) SimpleMessageListenerContainer
(ConnectionFactory connectionFactory) 接続ファクトリからリスナーコンテナーを作成します (必須)。org.springframework.amqp.rabbit.test 内の ConnectionFactory 使用
型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.test のコンストラクターorg.springframework.amqp.rabbit.transaction 内の ConnectionFactory 使用
型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.transaction のメソッド修飾子と型メソッド説明void
RabbitTransactionManager.setConnectionFactory
(ConnectionFactory connectionFactory) 型 ConnectionFactory のパラメーターを持つ org.springframework.amqp.rabbit.transaction のコンストラクター修飾子コンストラクター説明RabbitTransactionManager
(ConnectionFactory connectionFactory) ConnectionFactory を指定して、新しい RabbitTransactionManager を作成します。