クラス PointToPointSubscribableAmqpChannel
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.amqp.channel.AbstractAmqpChannel
org.springframework.integration.amqp.channel.PointToPointSubscribableAmqpChannel
- 実装されているすべてのインターフェース:
ConnectionListener、Aware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、ApplicationContextAware、Lifecycle、Phased、SmartLifecycle、ComponentSourceAware、ExpressionCapable、IntegrationPattern、NamedComponent、IntegrationManagement、ManageableLifecycle、ManageableSmartLifecycle、TrackableComponent、MessageChannel、SubscribableChannel、InterceptableChannel
AMQP キューを介した 1 対 1 サブスクリプションの
AbstractSubscribableAmqpChannel 実装。 キュー名が指定されていない場合、チャネル Bean 名は、指定された AmqpAdmin(存在する場合)を介してキューを宣言するために内部的に使用されます。
- 導入:
- 2.1
- 作成者:
- Mark Fisher, Artem Bilan
ネストされたクラスの要約
クラス org.springframework.integration.channel.AbstractMessageChannel から継承されたネストクラス / インターフェース
AbstractMessageChannel.ChannelInterceptorListインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールドのサマリー
クラス org.springframework.integration.channel.AbstractMessageChannel から継承されたフィールド
interceptors, metersクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース org.springframework.messaging.MessageChannel から継承されたフィールド
INDEFINITE_TIMEOUTインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターコンストラクター説明PointToPointSubscribableAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。PointToPointSubscribableAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate, AmqpHeaderMapper outboundMapper, AmqpHeaderMapper inboundMapper) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。メソッドのサマリー
修飾子と型メソッド説明protected AbstractDispatchervoiddestroy()protected voidintgetPhase()protected StringSEサブクラスは、このメソッドをオーバーライドしてルーティングキーを返す場合があります。booleanbooleanprotected StringSEobtainQueueName(StringSE channelName) voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidsetMaxSubscribers(int maxSubscribers) チャネルのディスパッチャーでサポートされるサブスクライバーの最大数を指定します(AbstractDispatcherの場合)。voidsetQueueName(StringSE queueName) 使用するキュー名を指定します。voidstart()voidstop()voidstop(RunnableSE callback) booleansubscribe(MessageHandler handler) booleanunsubscribe(MessageHandler handler) クラス org.springframework.integration.amqp.channel.AbstractAmqpChannel から継承されたメソッド
doSend, getAdmin, getAmqpTemplate, getConnectionFactory, getExchangeName, getInboundHeaderMapper, getRabbitTemplate, isExtractPayload, isLoggingEnabled, onCreate, setAdmin, setConnectionFactory, setDefaultDeliveryMode, setExtractPayload, setHeadersMappedLast, setLoggingEnabledクラス org.springframework.integration.channel.AbstractMessageChannel から継承されたメソッド
addInterceptor, addInterceptor, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isApplicationRunning, isObserved, registerMetricsCaptor, registerObservationRegistry, removeInterceptor, removeInterceptor, send, send, setDatatypes, setInterceptors, setMessageConverter, setObservationConvention, setShouldTrackクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.amqp.rabbit.connection.ConnectionListener から継承されたメソッド
onClose, onFailed, onShutDownインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getThisAs, setManagedName, setManagedTypeインターフェース org.springframework.messaging.MessageChannel から継承されたメソッド
send, sendインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
PointToPointSubscribableAmqpChannel
public PointToPointSubscribableAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。- パラメーター:
channelName- チャンネル名。container- コンテナー。amqpTemplate- テンプレート。- 関連事項:
PointToPointSubscribableAmqpChannel
public PointToPointSubscribableAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate, AmqpHeaderMapper outboundMapper, AmqpHeaderMapper inboundMapper) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。- パラメーター:
channelName- チャンネル名。container- コンテナー。amqpTemplate- テンプレート。outboundMapper- 発信マッパー。inboundMapper- 受信マッパー。- 導入:
- 4.3
- 関連事項:
メソッドの詳細
setQueueName
使用するキュー名を指定します。これが指定されていない場合、キューの名前はチャネル名と同じになります。- パラメーター:
queueName- キュー名。
obtainQueueName
createDispatcher
getRoutingKey
クラスからコピーされた説明:AbstractAmqpChannelサブクラスは、このメソッドをオーバーライドしてルーティングキーを返す場合があります。デフォルトでは、ルーティングキー(空の文字列)はありません。- オーバーライド:
- クラス
AbstractAmqpChannelのgetRoutingKey - 戻り値:
- ルーティングキー。
doDeclares
protected void doDeclares()- 次で指定:
- クラス
AbstractAmqpChannelのdoDeclares
setMaxSubscribers
public void setMaxSubscribers(int maxSubscribers) チャネルのディスパッチャーでサポートされるサブスクライバーの最大数を指定します(AbstractDispatcherの場合)。- パラメーター:
maxSubscribers- 許可されるサブスクライバーの最大数。
subscribe
- 次で指定:
- インターフェース
SubscribableChannelのsubscribe
unsubscribe
- 次で指定:
- インターフェース
SubscribableChannelのunsubscribe
onInit
public void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
AbstractAmqpChannelのonInit
isAutoStartup
public boolean isAutoStartup()- 次で指定:
- インターフェース
SmartLifecycleのisAutoStartup
getPhase
public int getPhase()- 次で指定:
- インターフェース
PhasedのgetPhase - 次で指定:
- インターフェース
SmartLifecycleのgetPhase
isRunning
public boolean isRunning()- 次で指定:
- インターフェース
LifecycleのisRunning - 次で指定:
- インターフェース
ManageableLifecycleのisRunning
start
public void start()- 次で指定:
- インターフェース
Lifecycleのstart - 次で指定:
- インターフェース
ManageableLifecycleのstart
stop
public void stop()- 次で指定:
- インターフェース
Lifecycleのstop - 次で指定:
- インターフェース
ManageableLifecycleのstop
stop
- 次で指定:
- インターフェース
SmartLifecycleのstop
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBeanのdestroy - 次で指定:
- インターフェース
IntegrationManagementのdestroy - オーバーライド:
- クラス
AbstractAmqpChannelのdestroy