public final class RpcUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_RPC_CLOSURE_EXECUTOR_POOL_SIZE
Default jraft closure executor pool maximum size.
|
static int |
MIN_RPC_CLOSURE_EXECUTOR_POOL_SIZE
Default jraft closure executor pool minimum size, CPUs by default.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
runClosureInExecutor(Executor executor,
Closure done,
Status status)
Run closure with status in specified executor
|
static Future<?> |
runClosureInThread(Closure done)
Run closure with OK status in thread pool.
|
static Future<?> |
runClosureInThread(Closure done,
Status status)
Run closure with status in thread pool.
|
static Future<?> |
runInThread(Runnable runnable)
Run a task in thread pool, returns the future object.
|
public static final int MIN_RPC_CLOSURE_EXECUTOR_POOL_SIZE
public static final int MAX_RPC_CLOSURE_EXECUTOR_POOL_SIZE
public static Future<?> runClosureInThread(Closure done)
public static Future<?> runInThread(Runnable runnable)
public static Future<?> runClosureInThread(Closure done, Status status)
Copyright © 2021. All rights reserved.