クラス StompInboundChannelAdapter
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.stomp.inbound.StompInboundChannelAdapter
- 実装済みのインターフェース一覧:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent
@ManagedResource
@IntegrationManagedResource
public class StompInboundChannelAdapter
extends MessageProducerSupport
implements ApplicationEventPublisherAware
提供された宛先からの STOMP フレームを処理し、
outputChannel にメッセージを送信するための MessageProducerSupport forSTOMP プロトコル。宛先は実行時に追加および削除できます。
StompSessionManager が autoReceiptEnabled をサポートしている場合、StompReceiptEvent は Subscribe STOMP frame ごとに発行されます。
- 導入:
- 4.2
- 作成者:
- Artem Bilan, Gary Russell, Trung Pham
ネストされたクラスの概要
インターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス AbstractEndpoint から継承されたフィールド
lifecycleLockクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクターコンストラクター説明StompInboundChannelAdapter(StompSessionManager stompSessionManager, StringSE... destinations) 方法の概要
修飾子と型メソッド説明voidaddDestination(StringSE... destination) サブスクライブリストに 1 つまたは複数の宛先を追加してサブスクライブします。protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。StringSE[]voidremoveDestination(StringSE... destination) サブスクライブリストから 1 つまたは複数の宛先を削除し、サブスクライブを解除します。voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetHeaderMapper(HeaderMapper<StompHeaders> headerMapper) voidsetPayloadType(ClassSE<?> payloadType) クラス MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getOutputChannelName, getRequiredOutputChannel, isObserved, onInit, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス 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クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
StompInboundChannelAdapter
public StompInboundChannelAdapter(StompSessionManager stompSessionManager, StringSE... destinations)
方法の詳細
setPayloadType
setHeaderMapper
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAware内のsetApplicationEventPublisher
getDestinations
addDestination
サブスクライブリストに 1 つまたは複数の宛先を追加してサブスクライブします。- パラメーター:
destination- 宛先。
removeDestination
サブスクライブリストから 1 つまたは複数の宛先を削除し、サブスクライブを解除します。- パラメーター:
destination- 宛先。
getComponentType
- 次で指定:
- インターフェース
NamedComponent内のgetComponentType - オーバーライド:
- クラス
MessageProducerSupportのgetComponentType
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
MessageProducerSupportのdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupportのdoStop