C# Class Summer.Batch.Core.Scope.Context.StepContextRepeatCallback

Convenient base class for clients who need to do something in a repeat callback inside a IStep.
显示文件 Open project: SummerBatch/SummerBatch

Public Methods

Method Description
GetRepeatCallback ( StepExecution stepExecution, DoInChunkContext doInChunkContext ) : RepeatCallback

Manage the StepContext lifecycle. Business processing should be delegated to DoInChunkContext. This is to ensure that the current thread has a reference to the context, even if the callback is executed in a pooled thread. Handles the registration and unregistration of the step context, so clients should not duplicate those calls.

Method Details

GetRepeatCallback() public static method

Manage the StepContext lifecycle. Business processing should be delegated to DoInChunkContext. This is to ensure that the current thread has a reference to the context, even if the callback is executed in a pooled thread. Handles the registration and unregistration of the step context, so clients should not duplicate those calls.
public static GetRepeatCallback ( StepExecution stepExecution, DoInChunkContext doInChunkContext ) : RepeatCallback
stepExecution StepExecution
doInChunkContext DoInChunkContext
return RepeatCallback