クラス StompInboundChannelAdapter

実装されたすべてのインターフェース:
AwareBeanFactoryAwareBeanNameAwareDisposableBeanInitializingBeanSmartInitializingSingletonApplicationContextAwareApplicationEventPublisherAwareLifecyclePhasedSmartLifecycleExpressionCapableMessageProducerIntegrationPatternNamedComponentIntegrationInboundManagementIntegrationManagementManageableLifecycleManageableSmartLifecycleTrackableComponent

提供された宛先からの STOMP フレームを処理し、outputChannel にメッセージを送信するための MessageProducerSupport forSTOMP プロトコル。

宛先は実行時に追加および削除できます。

StompSessionManager が autoReceiptEnabled をサポートしている場合、StompReceiptEvent は Subscribe STOMP frame ごとに発行されます。

導入:
4.2
作成者:
Artem Bilan, Gary Russell, Trung Pham
  • コンストラクターの詳細

  • メソッドの詳細

    • setPayloadType

      public void setPayloadType(ClassSE<?> payloadType)
    • setHeaderMapper

      public void setHeaderMapper(HeaderMapper<StompHeaders> headerMapper)
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      次で指定:
      インターフェース ApplicationEventPublisherAwaresetApplicationEventPublisher 
    • getDestinations

      @ManagedAttribute public StringSE[] getDestinations()
    • addDestination

      @ManagedOperation public void addDestination(StringSE... destination)
      サブスクライブリストに 1 つまたは複数の宛先を追加してサブスクライブします。
      パラメーター:
      destination - 宛先。
    • removeDestination

      @ManagedOperation public void removeDestination(StringSE... destination)
      サブスクライブリストから 1 つまたは複数の宛先を削除し、サブスクライブを解除します。
      パラメーター:
      destination - 宛先。
    • getComponentType

      public StringSE getComponentType()
      クラスからコピーされた説明: IntegrationObjectSupport
      サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。
      次で指定:
      インターフェース NamedComponentgetComponentType 
      オーバーライド:
      クラス IntegrationObjectSupportgetComponentType 
    • doStart

      protected void doStart()
      クラスからコピーされた説明: MessageProducerSupport
      デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。"lifecycleLock" によって保護されています。
      オーバーライド:
      クラス MessageProducerSupportdoStart 
    • doStop

      protected void doStop()
      クラスからコピーされた説明: MessageProducerSupport
      デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。
      オーバーライド:
      クラス MessageProducerSupportdoStop