public class ExecutorRouteConsistentHash extends ExecutorRouter
| 限定符和类型 | 字段和说明 |
|---|---|
private static int |
VIRTUAL_NODE_NUM |
logger| 构造器和说明 |
|---|
ExecutorRouteConsistentHash() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static long |
hash(String key)
get hash code on 2^32 ring (md5散列的方式计算hash值)
|
String |
hashJob(int jobId,
List<String> addressList) |
com.xxl.job.core.biz.model.ReturnT<String> |
route(com.xxl.job.core.biz.model.TriggerParam triggerParam,
List<String> addressList)
route address
|
private static long hash(String key)
key - public com.xxl.job.core.biz.model.ReturnT<String> route(com.xxl.job.core.biz.model.TriggerParam triggerParam, List<String> addressList)
ExecutorRouterroute 在类中 ExecutorRouterCopyright © 2022. All rights reserved.