public class SimpleHashExecutionRouter extends ExecutionRouter
| 构造器和说明 |
|---|
SimpleHashExecutionRouter() |
SimpleHashExecutionRouter(ToLongFunction<ExecuteTaskParam> hashFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Worker |
doRoute(String group,
ExecuteTaskParam param,
List<Worker> workers)
Routes one worker
|
RouteStrategy |
routeStrategy()
Bind a route strategy
|
routepublic SimpleHashExecutionRouter()
public SimpleHashExecutionRouter(ToLongFunction<ExecuteTaskParam> hashFunction)
public RouteStrategy routeStrategy()
ExecutionRouterrouteStrategy 在类中 ExecutionRouterprotected Worker doRoute(String group, ExecuteTaskParam param, List<Worker> workers)
ExecutionRouterdoRoute 在类中 ExecutionRoutergroup - the task job groupparam - the task execution paramworkers - the list of workerCopyright © 2023. All rights reserved.