public abstract class TaskExecutor<T> extends Object
| 构造器和说明 |
|---|
TaskExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy this task executor
|
abstract Result<T> |
execute(Checkpoint checkpoint)
Executes schedule task
|
void |
init()
Initializes schedule task
|
boolean |
isStopped()
Returns execute is whether stopped.
|
void |
stop()
Stop execute.
|
SchedTask |
task()
Returns the sched task object.
|
void |
task(SchedTask task)
Setting the sched task object.
|
void |
verify()
Verifies schedule task
|
public final void task(SchedTask task)
task - the sched task objectpublic final SchedTask task()
public final void stop()
public final boolean isStopped()
true if stoppedpublic void verify()
throws Exception
Exception - if verified failedpublic abstract Result<T> execute(Checkpoint checkpoint) throws Exception
checkpoint - the checkpointException - if execute failedpublic void destroy()
Copyright © 2023. All rights reserved.