クラス NoWorkFoundStepExecutionListener

java.lang.ObjectSE
org.springframework.batch.core.step.NoWorkFoundStepExecutionListener
実装されたすべてのインターフェース:
StepExecutionListenerStepListener

public class NoWorkFoundStepExecutionListener extends ObjectSE implements StepExecutionListener
アイテムが処理されていない場合(アイテム数が 0 の場合)、ステップは失敗します。
作成者:
Robert Kasanicky, Mahmoud Ben Hassine
  • コンストラクターの詳細

    • NoWorkFoundStepExecutionListener

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

    • afterStep

      @Nullable public ExitStatus afterStep(StepExecution stepExecution)
      インターフェースからコピーされた説明: StepExecutionListener
      リスナーにステップの終了ステータスを変更する機会を与えます。返された値は、ExitStatus.and(ExitStatus) を使用して通常の終了ステータスと結合されます。

      ステップの処理ロジックの実行後に (成功または失敗に関係なく) 呼び出されます。このメソッドで例外をスローしても、ログに記録されるだけなので効果はありません。

      次で指定:
      インターフェース StepExecutionListenerafterStep 
      パラメーター:
      stepExecution - StepExecution インスタンス。
      戻り値:
      通常の値と組み合わせる ExitStatus。古い値を変更しない場合は、null (デフォルト) を返します。