Package org.springframework.batch.core
Class DefaultJobKeyGenerator
java.lang.Object
org.springframework.batch.core.DefaultJobKeyGenerator
- All Implemented Interfaces:
JobKeyGenerator<JobParameters>
Default implementation of the
JobKeyGenerator
interface. This implementation
provides a single hash value based on the JobParameters
object passed in. Only
identifying parameters (as per JobParameter.isIdentifying()
) are used in the
calculation of the key.- Since:
- 2.2
- Author:
- Michael Minella, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateKey
(JobParameters source) Generates the job key to be used based on theJobParameters
instance provided.
-
Constructor Details
-
DefaultJobKeyGenerator
public DefaultJobKeyGenerator()
-
-
Method Details
-
generateKey
Generates the job key to be used based on theJobParameters
instance provided.- Specified by:
generateKey
in interfaceJobKeyGenerator<JobParameters>
- Parameters:
source
- Source information used to generate the key (must not benull
).- Returns:
- a unique string identifying the job based on the information supplied.
-