クラス RabbitAccessor
java.lang.ObjectSE
org.springframework.amqp.rabbit.connection.RabbitAccessor
- 実装されているすべてのインターフェース:
InitializingBean
- 既知の直属サブクラス
ObservableListenerContainer,RabbitTemplate
- 作成者:
- Mark Fisher, Dave Syer, Gary Russell, Artem Bilan
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明voidprotected RuntimeExceptionSEprotected Connectionこのテンプレートの ConnectionFactory とそのホストとポートの値を使用して、RabbitMQ 接続を作成します。protected @Nullable com.rabbitmq.client.ChannelgetChannel(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切なチャネルを取得します。protected @Nullable ConnectiongetConnection(RabbitResourceHolder holder) 指定された RabbitResourceHolder から適切な接続をフェッチします。protected io.micrometer.observation.ObservationRegistryprotected RabbitResourceHolderbooleanprotected voidobtainObservationRegistry(@Nullable ApplicationContext appContext) voidsetChannelTransacted(boolean transactional) このコンポーネントによって作成されたチャネルがトランザクションになることを示すフラグ。voidsetConnectionFactory(ConnectionFactory connectionFactory) RabbitMQConnectionsの取得に使用する ConnectionFactory を設定します。
フィールドの詳細
logger
protected final org.apache.commons.logging.Log loggerサブクラスで利用可能なロガー。
コンストラクターの詳細
RabbitAccessor
public RabbitAccessor()
メソッドの詳細
isChannelTransacted
public boolean isChannelTransacted()setChannelTransacted
public void setChannelTransacted(boolean transactional) このコンポーネントによって作成されたチャネルがトランザクションになることを示すフラグ。- パラメーター:
transactional- 設定するフラグ値
setConnectionFactory
RabbitMQConnectionsの取得に使用する ConnectionFactory を設定します。- パラメーター:
connectionFactory- 接続ファクトリ。
getConnectionFactory
- 戻り値:
- このアクセサーが RabbitMQ
Connectionsを取得するために使用する ConnectionFactory。
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet
createConnection
このテンプレートの ConnectionFactory とそのホストとポートの値を使用して、RabbitMQ 接続を作成します。- 戻り値:
- 新しい RabbitMQ 接続
- 関連事項:
getConnection
指定された RabbitResourceHolder から適切な接続をフェッチします。- パラメーター:
holder- RabbitResourceHolder- 戻り値:
- ホルダーからフェッチされた適切な接続、または見つからない場合は
null
getChannel
指定された RabbitResourceHolder から適切なチャネルを取得します。- パラメーター:
holder- RabbitResourceHolder- 戻り値:
- 所有者から取得した適切なチャネル、または見つからない場合は
null
getTransactionalResourceHolder
convertRabbitAccessException
obtainObservationRegistry
getObservationRegistry
protected io.micrometer.observation.ObservationRegistry getObservationRegistry()