类 DefaultJobKeyGenerator
- java.lang.Object
- org.springframework.batch.core.DefaultJobKeyGenerator
- 所有已实现的接口:
JobKeyGenerator<JobParameters>
public class DefaultJobKeyGenerator extends java.lang.Object implements JobKeyGenerator<JobParameters>
Default implementation of theJobKeyGenerator
interface. This implementation provides a single hash value based on the JobParameters passed in. Only identifying parameters (perJobParameter.isIdentifying()
) are used in the calculation of the key.- 从以下版本开始:
- 2.2
- 作者:
- Michael Minella, Mahmoud Ben Hassine
构造器概要
构造器 构造器 说明 DefaultJobKeyGenerator()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
generateKey(JobParameters source)
Generates the job key to be used based on theJobParameters
instance provided.
构造器详细资料
DefaultJobKeyGenerator
public DefaultJobKeyGenerator()
方法详细资料
generateKey
public java.lang.String generateKey(JobParameters source)
Generates the job key to be used based on theJobParameters
instance provided.- 指定者:
generateKey
在接口中JobKeyGenerator<JobParameters>
- 参数:
source
- Source information used to generate the key (must not benull
)- 返回:
- a unique string identifying the job based on the information supplied