public class ExecuteTaskParam extends ToJsonString implements TimingWheel.Timing<ExecuteTaskParam>, Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ExecuteTaskParam.Builder |
static class |
ExecuteTaskParam.JacksonDeserializer
Custom deserialize ExecuteParam based jackson.
|
| 构造器和说明 |
|---|
ExecuteTaskParam(Operations operation,
long taskId,
long instanceId,
Long wnstanceId,
long triggerTime,
long jobId,
JobType jobType,
RouteStrategy routeStrategy,
int executeTimeout,
String jobHandler)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecuteTaskParam.Builder |
builder(SchedInstance instance,
SchedJob schedJob) |
static ExecuteTaskParam |
deserialize(byte[] bytes)
Deserialize from string.
|
boolean |
equals(Object o) |
int |
getExecuteTimeout() |
long |
getInstanceId() |
String |
getJobHandler() |
long |
getJobId() |
JobType |
getJobType() |
AtomicReference<Operations> |
getOperation()
For help to deserialization
|
RouteStrategy |
getRouteStrategy() |
long |
getTaskId() |
long |
getTriggerTime() |
Long |
getWnstanceId() |
Worker |
getWorker() |
int |
hashCode() |
Operations |
operation() |
byte[] |
serialize()
Serialize to string
|
void |
setWorker(Worker worker) |
void |
stop() |
void |
taskExecutor(TaskExecutor taskExecutor) |
long |
timing() |
boolean |
updateOperation(Operations expect,
Operations update) |
toStringcompareTopublic ExecuteTaskParam(Operations operation, long taskId, long instanceId, Long wnstanceId, long triggerTime, long jobId, JobType jobType, RouteStrategy routeStrategy, int executeTimeout, String jobHandler)
operation - the operation(if terminate task, this is null value)taskId - the task idinstanceId - the instance idwnstanceId - the workflow instance idtriggerTime - the trigger timejobId - the job idjobType - the job typerouteStrategy - the route strategyexecuteTimeout - the execution timeoutjobHandler - the job handlerpublic static ExecuteTaskParam.Builder builder(SchedInstance instance, SchedJob schedJob)
public AtomicReference<Operations> getOperation()
public long getTaskId()
public long getInstanceId()
public Long getWnstanceId()
public long getTriggerTime()
public long getJobId()
public JobType getJobType()
public RouteStrategy getRouteStrategy()
public int getExecuteTimeout()
public String getJobHandler()
public Worker getWorker()
public void setWorker(Worker worker)
public boolean updateOperation(Operations expect, Operations update)
public Operations operation()
public void taskExecutor(TaskExecutor taskExecutor)
public void stop()
public long timing()
timing 在接口中 TimingWheel.Timing<ExecuteTaskParam>public byte[] serialize()
public static ExecuteTaskParam deserialize(byte[] bytes)
bytes - the serialized byte arrayCopyright © 2023. All rights reserved.