接口 StepExecutionListener
- 所有超级接口:
StepListener
- 所有已知实现类:
ChunkMessageChannelItemWriter
,CompositeCustomerUpdateLineTokenizer
,CompositeStepExecutionListener
,ExecutionContextPromotionListener
,GeneratingTradeResettingListener
,InfiniteLoopWriter
,JobParameterExecutionContextCopyListener
,MulticasterBatchListener
,NoWorkFoundStepExecutionListener
,StagingItemListener
,StagingItemReader
,StagingItemWriter
,StepExecutionListenerSupport
,StepExecutionSimpleCompletionPolicy
,StepListenerAdapter
,StepListenerSupport
,SummaryFooterCallback
,SystemCommandTasklet
public interface StepExecutionListener extends StepListener
Listener interface for the lifecycle of aStep
.- 作者:
- Lucas Ward, Dave Syer, Mahmoud Ben Hassine
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ExitStatus
afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step.void
beforeStep(StepExecution stepExecution)
Initialize the state of the listener with theStepExecution
from the current scope.
方法详细资料
beforeStep
void beforeStep(StepExecution stepExecution)
Initialize the state of the listener with theStepExecution
from the current scope.- 参数:
stepExecution
- instance ofStepExecution
.
afterStep
@Nullable ExitStatus afterStep(StepExecution stepExecution)
Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status usingExitStatus.and(ExitStatus)
. Called after execution of step's processing logic (both successful or failed). Throwing exception in this method has no effect, it will only be logged.- 参数:
stepExecution
-StepExecution
instance.- 返回:
- an
ExitStatus
to combine with the normal value. Returnnull
to leave the old value unchanged.