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, wait
addElement, getRunPeriod, isEmpty, removeElement
protected volatile TaskRunnable nextTask
protected volatile TaskRunnable previousTask
protected volatile HeadTaskRunnable headTask
public void setHeadTask(HeadTaskRunnable headTask)
setHeadTask
in interface TaskRunnable
headTask
- The HeadTaskRunnablepublic HeadTaskRunnable getHeadTask()
getHeadTask
in interface TaskRunnable
public TaskRunnable previous()
previous
in interface TaskRunnable
public TaskRunnable next()
next
in interface TaskRunnable
public void setPrevious(TaskRunnable task)
setPrevious
in interface TaskRunnable
task
- The previous TaskRunnablepublic void setNext(TaskRunnable task)
setNext
in interface TaskRunnable
task
- The next TaskRunnablepublic long scheduledExecutionTime()
scheduledExecutionTime
in interface TaskRunnable
public boolean isScheduled()
public void cancel()
cancel
in interface TaskRunnable
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.