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
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for the generation of the key used in identifying unique
JobInstance
objects.- Since:
- 2.2
- Author:
- Michael Minella, Mahmoud Ben Hassine, Taeik Lim
-
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.
-