クラス PublishSubscribeAmqpChannel
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.amqp.channel.AbstractAmqpChannel
org.springframework.integration.amqp.channel.PublishSubscribeAmqpChannel
- 実装されたすべてのインターフェース:
ConnectionListener
、Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、Lifecycle
、Phased
、SmartLifecycle
、BroadcastCapableChannel
、ComponentSourceAware
、ExpressionCapable
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
、MessageChannel
、SubscribableChannel
、InterceptableChannel
public class PublishSubscribeAmqpChannel
extends AbstractAmqpChannel
implements BroadcastCapableChannel
FanoutExchange
に基づく pub-sub セマンティクスの AbstractSubscribableAmqpChannel
拡張。- 導入:
- 2.1
- 作成者:
- Mark Fisher, Gary Russell, 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
コンストラクターの概要
コンストラクターコンストラクター説明PublishSubscribeAmqpChannel
(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。PublishSubscribeAmqpChannel
(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate, AmqpHeaderMapper outboundMapper, AmqpHeaderMapper inboundMapper) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。メソッドのサマリー
修飾子と型メソッド説明protected AbstractDispatcher
void
destroy()
protected void
protected StringSE
サブクラスはこのメソッドをオーバーライドして、Exchange 名を返す場合があります。int
getPhase()
boolean
boolean
protected StringSE
obtainQueueName
(StringSE channelName) void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setExchange
(FanoutExchange exchange) FanoutExchange インスタンスを構成します。void
setMaxSubscribers
(int maxSubscribers) チャネルのディスパッチャーでサポートされるサブスクライバーの最大数を指定します(AbstractDispatcher
の場合)。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, getInboundHeaderMapper, getRabbitTemplate, getRoutingKey, 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, 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.integration.channel.BroadcastCapableChannel から継承されたメソッド
isBroadcast
インターフェース 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.messaging.SubscribableChannel から継承されたメソッド
subscribe, unsubscribe
コンストラクターの詳細
PublishSubscribeAmqpChannel
public PublishSubscribeAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。- パラメーター:
channelName
- チャンネル名。container
- コンテナー。amqpTemplate
- テンプレート。- 関連事項:
PublishSubscribeAmqpChannel
public PublishSubscribeAmqpChannel(StringSE channelName, AbstractMessageListenerContainer container, AmqpTemplate amqpTemplate, AmqpHeaderMapper outboundMapper, AmqpHeaderMapper inboundMapper) 指定された名前、コンテナー、テンプレートでインスタンスを作成します。メッセージがマップされる場合、デフォルトのヘッダーマッパーが使用されます。- パラメーター:
channelName
- チャンネル名。container
- コンテナー。amqpTemplate
- テンプレートoutboundMapper
- 発信マッパー。inboundMapper
- 受信マッパー。- 導入:
- 4.3
- 関連事項:
メソッドの詳細
setExchange
FanoutExchange インスタンスを構成します。これが指定されていない場合、FanoutExchange は暗黙的に宣言され、その名前は "si.fanout." で始まるチャネル名と同じになります。いずれの場合も、事実上匿名のキューが自動的に宣言されます。- パラメーター:
exchange
- ファンアウト交換。
getExchangeName
クラスからコピーされた説明:AbstractAmqpChannel
サブクラスはこのメソッドをオーバーライドして、Exchange 名を返す場合があります。デフォルトでは、メッセージは名前のない直接交換に送信されます。- オーバーライド:
- クラス
AbstractAmqpChannel
のgetExchangeName
- 戻り値:
- エクスチェンジ名。
obtainQueueName
createDispatcher
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