Package org.springframework.batch.core
Interface JobKeyGenerator<T>
- Type Parameters:
T
- The type of the source data used to calculate the key.
- All Known Implementing Classes:
DefaultJobKeyGenerator
public interface JobKeyGenerator<T>
Strategy interface for the generation of the key used in identifying unique
JobInstance
objects.- Since:
- 2.2
- Author:
- Michael Minella, Mahmoud Ben Hassine
-
Method Summary
Modifier and TypeMethodDescriptiongenerateKey
(T source) Method to generate the unique key used to identify a job instance.
-
Method Details
-
generateKey
Method to generate the unique key used to identify a job instance.- Parameters:
source
- Source information used to generate the key (must not benull
).- Returns:
- a unique string identifying the job based on the information supplied.
-