public abstract class GeneralTaskRunnable extends Object implements TaskRunnable
| Modifier and Type | Field and Description |
|---|---|
protected HeadTaskRunnable |
headTask |
protected TaskRunnable |
nextTask |
protected TaskRunnable |
previousTask |
| Constructor and Description |
|---|
GeneralTaskRunnable() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Implements for TaskRunnable interface.
|
HeadTaskRunnable |
getHeadTask()
Returns the head task of this linkable TaskRunnable.
|
boolean |
isScheduled()
Returns true if this TaskRunnable is scheduled to run; otherwise returns false.
|
TaskRunnable |
next()
Returns the TaskRunnable next to this TaskRunnable in the linked-list.
|
TaskRunnable |
previous()
Returns the TaskRunnable previous to this TaskRunnable in the
linked-list.
|
long |
scheduledExecutionTime()
Returns the scheduled time of this TaskRunnable.
|
void |
setHeadTask(HeadTaskRunnable headTask)
Sets the head task for this linkable TaskRunnable
The head task of this TaskRunnable will be set.
|
void |
setNext(TaskRunnable task)
Sets the TaskRunnable next to this TaskRunnable in the linked-list.
|
void |
setPrevious(TaskRunnable task)
Sets the TaskRunnable previous to this TaskRunnable in the linked-list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddElement, getRunPeriod, isEmpty, removeElementprotected volatile TaskRunnable nextTask
protected volatile TaskRunnable previousTask
protected volatile HeadTaskRunnable headTask
public void setHeadTask(HeadTaskRunnable headTask)
setHeadTask in interface TaskRunnableheadTask - The HeadTaskRunnablepublic HeadTaskRunnable getHeadTask()
getHeadTask in interface TaskRunnablepublic TaskRunnable previous()
previous in interface TaskRunnablepublic TaskRunnable next()
next in interface TaskRunnablepublic void setPrevious(TaskRunnable task)
setPrevious in interface TaskRunnabletask - The previous TaskRunnablepublic void setNext(TaskRunnable task)
setNext in interface TaskRunnabletask - The next TaskRunnablepublic long scheduledExecutionTime()
scheduledExecutionTime in interface TaskRunnablepublic boolean isScheduled()
public void cancel()
cancel in interface TaskRunnableCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.