public interface JobShardingStrategy extends TypedSPI
| Modifier and Type | Method and Description |
|---|---|
Map<JobInstance,List<Integer>> |
sharding(List<JobInstance> jobInstances,
String jobName,
int shardingTotalCount)
Sharding job.
|
Map<JobInstance,List<Integer>> sharding(List<JobInstance> jobInstances, String jobName, int shardingTotalCount)
jobInstances - all job instances which participate in shardingjobName - job nameshardingTotalCount - sharding total countCopyright © 2021 The Apache Software Foundation. All rights reserved.