public final class ExecuteEngine extends Object
| 构造器和说明 |
|---|
ExecuteEngine() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecuteEngine |
newCachedThreadInstance(String threadName)
Create task execute engine instance with cached thread pool.
|
static ExecuteEngine |
newFixedThreadInstance(int threadNumber,
String threadName)
Create task execute engine instance with fixed thread pool.
|
CompletableFuture<?> |
submit(LifecycleExecutor lifecycleExecutor,
ExecuteCallback executeCallback)
Submit a
LifecycleExecutor with callback ExecuteCallback to execute. |
CompletableFuture<?> |
submitAll(Collection<? extends LifecycleExecutor> lifecycleExecutors,
ExecuteCallback executeCallback)
Submit a collection of
LifecycleExecutor with callback ExecuteCallback to execute. |
public static ExecuteEngine newCachedThreadInstance(String threadName)
threadName - thread namepublic static ExecuteEngine newFixedThreadInstance(int threadNumber, String threadName)
threadNumber - thread numberthreadName - thread namepublic CompletableFuture<?> submit(LifecycleExecutor lifecycleExecutor, ExecuteCallback executeCallback)
LifecycleExecutor with callback ExecuteCallback to execute.lifecycleExecutor - lifecycle executorexecuteCallback - execute callbackpublic CompletableFuture<?> submitAll(Collection<? extends LifecycleExecutor> lifecycleExecutors, ExecuteCallback executeCallback)
LifecycleExecutor with callback ExecuteCallback to execute.lifecycleExecutors - lifecycle executorexecuteCallback - execute callbackCopyright © 2022 The Apache Software Foundation. All rights reserved.