Interface ClusterAwareAggregatorCallback
public interface ClusterAwareAggregatorCallback
A callback interface to be implemented by classes that need to react to the
successful completion or failure of a collection of Spring Batch partitioned
step executions in a clustered environment.
This interface allows for custom logic to be executed once all partitions have finished, providing a centralized point to handle outcomes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(Collection<org.springframework.batch.core.step.StepExecution> executions) Called when at least one of the partitioned step executions has failed.voidonSuccess(Collection<org.springframework.batch.core.step.StepExecution> executions) Called when all partitioned step executions have completed successfully.
-
Method Details
-
onSuccess
Called when all partitioned step executions have completed successfully.- Parameters:
executions- A collection ofStepExecutioninstances from the partitioned steps that all completed successfully.
-
onFailure
Called when at least one of the partitioned step executions has failed.- Parameters:
executions- A collection ofStepExecutioninstances from the partitioned steps, including any that may have failed.
-