public interface ITaskControl
| Modifier and Type | Interface and Description |
|---|---|
static class |
ITaskControl.ExecutionTimestampSource |
| Modifier and Type | Method and Description |
|---|---|
long |
getExecutionTimestamp() |
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() |
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 |
long |
setHeartbeatTimeout(long heartbeatTimeout)
setter for heartbeat timeout value
|
boolean |
setStopOnTimeoutFlag(boolean stopOnTimeoutFlag)
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
|
boolean isDone()
boolean setDone()
long getExecutionTimestamp()
ITaskControl.ExecutionTimestampSource getExecutionTimestampSource()
boolean setExecutionTimestamp(long executionTimestamp,
boolean force)
executionTimestamp - timestamp for next runforce - force to set new execution timestamplong getTimeout()
long setTimeout(long timeout)
timeout - new timeout valuelong getHeartbeatTimeout()
long setHeartbeatTimeout(long heartbeatTimeout)
heartbeatTimeout - new heartbeat timeout valuevoid timeout()
boolean isInTimeout()
boolean setStopOnTimeoutFlag(boolean stopOnTimeoutFlag)
IChannelTask implements IOnTaskStopstopOnTimeoutFlag - new stopOnTimeoutFlag valueboolean getStopOnTimeoutFlag()
Copyright © 2020. All rights reserved.