クラス StepExecutionInterceptor

java.lang.ObjectSE
org.springframework.batch.integration.async.StepExecutionInterceptor
実装されたすべてのインターフェース:
org.springframework.messaging.support.ChannelInterceptor

public class StepExecutionInterceptor extends ObjectSE implements org.springframework.messaging.support.ChannelInterceptor
現在の StepExecution(存在する場合)をヘッダーとしてメッセージに追加する ChannelInterceptor。ダウンストリーム非同期ハンドラーは、ステップスコープを設定する必要なしにステップコンテキストを利用できます。これは、スコープコンテキストが使用できないため、別のスレッドで実行されるハンドラーにとって問題になります。
作成者:
Dave Syer
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    static final StringSE
    ヘッダーの名前
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    org.springframework.messaging.Message<?>
    preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE

    インターフェース org.springframework.messaging.support.ChannelInterceptor から継承されたメソッド

    afterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceive
  • フィールドの詳細

  • コンストラクターの詳細

    • StepExecutionInterceptor

      public StepExecutionInterceptor()
  • メソッドの詳細

    • preSend

      public org.springframework.messaging.Message<?> preSend(org.springframework.messaging.Message<?> message, org.springframework.messaging.MessageChannel channel)
      次で指定:
      インターフェース org.springframework.messaging.support.ChannelInterceptorpreSend