public abstract class TaskExecutor<T> extends Object
| 构造器和说明 |
|---|
TaskExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy this task executor
|
abstract Result<T> |
execute(ExecutingTask executingTask,
Savepoint savepoint)
Executes task
|
void |
init(ExecutingTask executingTask)
Initializes task
|
boolean |
isStopped()
Returns execute is whether stopped.
|
protected void |
onStop()
On stop
|
void |
stop()
Stop execution.
|
public final void stop()
protected void onStop()
public final boolean isStopped()
true if stoppedpublic void init(ExecutingTask executingTask) throws Exception
executingTask - the executing taskException - if init failedpublic abstract Result<T> execute(ExecutingTask executingTask, Savepoint savepoint) throws Exception
executingTask - the executing tasksavepoint - the savepointException - if execute failedpublic void destroy()
Copyright © 2023. All rights reserved.