public class TaskControlImpl extends Object implements ITaskControl
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskControlImpl.PeriodicServiceTimestampPredicate
Predicate to test for set periodic reschedule service timestamp
|
static class |
TaskControlImpl.RescheduleTimestampPredicate
Predicate to test for
IChannel.rescheduleTask(String, long, long, long) |
static class |
TaskControlImpl.ScheduleTimestampPredicate
Predicate to test for
IChannel#scheduleTask(org.sodeac.messagedispatcher.api.IQueueTask) ... |
class |
TaskControlImpl.SetTimestampRequest |
ITaskControl.ExecutionTimestampSource| Modifier | Constructor and Description |
|---|---|
protected |
TaskControlImpl(IPropertyBlock taskPropertyBlock) |
| Modifier and Type | Method and Description |
|---|---|
long |
getExecutionTimestamp() |
long |
getExecutionTimeStampIntern() |
ITaskControl.ExecutionTimestampSource |
getExecutionTimestampSource() |
long |
getHeartbeatTimeout()
getter for heartbeat timeout value
|
boolean |
getStopOnTimeoutFlag()
getter for stopOnTimeout flag
|
long |
getTimeout()
getter for timout value
|
boolean |
isDone() |
boolean |
isInTimeout() |
void |
postRun() |
void |
preRun() |
void |
preRunPeriodicTask() |
boolean |
setDone()
mark task as done
|
boolean |
setExecutionTimestamp(long executionTimeStamp,
boolean force)
setter for timestamp of execution plan for next run
additionally task is marked done == false |
boolean |
setExecutionTimeStamp(long executionTimeStamp,
ITaskControl.ExecutionTimestampSource type,
Predicate<TaskControlImpl.SetTimestampRequest> predicate) |
void |
setExecutionTimeStampSource(ITaskControl.ExecutionTimestampSource executionTimeStampSource) |
long |
setHeartbeatTimeout(long heartBeatTimeOut)
setter for heartbeat timeout value
|
boolean |
setStopOnTimeoutFlag(boolean value)
setter for stopOnTimeout flag
If a task runs in a timeout, the worker is no longer in use, but normally continuing running to finish the runMethode.
|
long |
setTimeout(long timeOut)
setter for timeout value
|
void |
timeout()
notify, that this task runs to long
|
void |
timeOutService() |
protected TaskControlImpl(IPropertyBlock taskPropertyBlock)
public void preRun()
public void preRunPeriodicTask()
public void postRun()
public boolean setDone()
ITaskControlsetDone in interface ITaskControlpublic void timeout()
ITaskControltimeout in interface ITaskControlpublic void timeOutService()
public boolean isInTimeout()
isInTimeout in interface ITaskControlpublic long getExecutionTimestamp()
getExecutionTimestamp in interface ITaskControlpublic ITaskControl.ExecutionTimestampSource getExecutionTimestampSource()
getExecutionTimestampSource in interface ITaskControlpublic void setExecutionTimeStampSource(ITaskControl.ExecutionTimestampSource executionTimeStampSource)
public long getExecutionTimeStampIntern()
public boolean setExecutionTimestamp(long executionTimeStamp,
boolean force)
ITaskControlsetExecutionTimestamp in interface ITaskControlexecutionTimeStamp - timestamp for next runforce - force to set new execution timestamppublic boolean setExecutionTimeStamp(long executionTimeStamp,
ITaskControl.ExecutionTimestampSource type,
Predicate<TaskControlImpl.SetTimestampRequest> predicate)
public long getTimeout()
ITaskControlgetTimeout in interface ITaskControlpublic long setTimeout(long timeOut)
ITaskControlsetTimeout in interface ITaskControltimeOut - new timeout valuepublic long getHeartbeatTimeout()
ITaskControlgetHeartbeatTimeout in interface ITaskControlpublic long setHeartbeatTimeout(long heartBeatTimeOut)
ITaskControlsetHeartbeatTimeout in interface ITaskControlheartBeatTimeOut - new heartbeat timeout valuepublic boolean isDone()
isDone in interface ITaskControlpublic boolean setStopOnTimeoutFlag(boolean value)
ITaskControlIChannelTask implements IOnTaskStopsetStopOnTimeoutFlag in interface ITaskControlvalue - new stopOnTimeoutFlag valuepublic boolean getStopOnTimeoutFlag()
ITaskControlgetStopOnTimeoutFlag in interface ITaskControlCopyright © 2020. All rights reserved.