クラス ImapIdleChannelAdapter

実装済みのインターフェース一覧:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent

public class ImapIdleChannelAdapter extends MessageProducerSupport implements BeanClassLoaderAware, ApplicationEventPublisherAware
IMAP の "idle" コマンドをサポートするメールサーバーからメールメッセージを受信するイベント駆動型チャネルアダプター(RFC 2177 を参照)。受信したメールメッセージは変換され、Spring Integration メッセージとして出力チャネルに送信されます。メッセージペイロードは、受信された MessageEE インスタンスになります。
導入:
7.0
作成者:
Arjen Poutsma, Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
  • コンストラクターの詳細

    • ImapIdleChannelAdapter

      public ImapIdleChannelAdapter(ImapMailReceiver mailReceiver)
  • 方法の詳細

    • setTransactionSynchronizationFactory

      public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
    • setAdviceChain

      public void setAdviceChain(ListSE<Advice> adviceChain)
    • setTaskExecutor

      public void setTaskExecutor(ExecutorSE taskExecutor)
      IDLE タスクの受信をスケジュールするには、マネージド ExecutorSE を提供します。
      パラメーター:
      taskExecutor - 使用する ExecutorSE
    • setShouldReconnectAutomatically

      public void setShouldReconnectAutomatically(boolean shouldReconnectAutomatically)
      メッセージの待機中に MessagingExceptionEE をキャッチした後に IDLE タスクが自動的に再接続するかどうかを指定します。デフォルト値は true です。
      パラメーター:
      shouldReconnectAutomatically - 再接続する場合は true。
    • setReconnectDelay

      public void setReconnectDelay(long reconnectDelay)
      ミリ秒単位の接続試行間の時間(デフォルトは 10 秒)。
      パラメーター:
      reconnectDelay - 設定する reconnectDelay
    • getComponentType

      public StringSE getComponentType()
      次で指定:
      インターフェース NamedComponent 内の getComponentType 
      オーバーライド:
      クラス MessageProducerSupportgetComponentType 
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoaderSE classLoader)
      次で指定:
      インターフェース BeanClassLoaderAware 内の setBeanClassLoader 
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
      次で指定:
      インターフェース ApplicationEventPublisherAware 内の setApplicationEventPublisher 
    • onInit

      protected void onInit()
      クラスからコピーされた説明: IntegrationObjectSupport
      サブクラスは、初期化ロジック用にこれを実装できます。
      オーバーライド:
      クラス MessageProducerSupportonInit 
    • doStart

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

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

      public void destroy()
      次で指定:
      インターフェース DisposableBean 内の destroy 
      次で指定:
      インターフェース IntegrationManagement 内の destroy 
      オーバーライド:
      クラス AbstractEndpointdestroy