クラス 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
、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 AbstractDispatcher
void
destroy()
protected void
int
getPhase()
protected StringSE
サブクラスは、このメソッドをオーバーライドしてルーティングキーを返す場合があります。boolean
boolean
protected StringSE
obtainQueueName
(StringSE channelName) void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setMaxSubscribers
(int maxSubscribers) チャネルのディスパッチャーでサポートされるサブスクライバーの最大数を指定します(AbstractDispatcher
の場合)。void
setQueueName
(StringSE queueName) 使用するキュー名を指定します。void
start()
void
stop()
void
stop
(RunnableSE callback) boolean
subscribe
(MessageHandler handler) boolean
unsubscribe
(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, 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, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, 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
コンストラクターの詳細
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