public class InstantRunnable extends GeneralTaskRunnable
| Modifier and Type | Field and Description |
|---|---|
protected Set |
actions |
protected boolean |
allowToChange |
protected boolean |
removeElementAfterAction |
headTask, nextTask, previousTask| Constructor and Description |
|---|
InstantRunnable(boolean removeElementAfterAction)
Constructor of InstantRunnable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addElement(Object obj)
Adds an element to this InstantRunnable.
|
long |
getRunPeriod()
Returns the run period of this InstantRunnable.
|
boolean |
isEmpty()
Indicates whether this InstantRunnable is empty.
|
boolean |
removeElement(Object obj)
Removes an element from this InstantRunnable.
|
void |
reset()
Resets this InstantRunnable to allow elements to be added.
|
void |
run()
Implements for TaskRunnable.
|
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPreviousprotected Set actions
protected boolean removeElementAfterAction
protected volatile boolean allowToChange
public InstantRunnable(boolean removeElementAfterAction)
removeElementAfterAction - Whether to remove the elements after
running the ScheduleableAction on the objectspublic void run()
public boolean addElement(Object obj)
obj - Element to be added to this InstantRunnablepublic boolean removeElement(Object obj)
obj - Element to be removed from this InstantRunnablepublic boolean isEmpty()
public long getRunPeriod()
public void reset()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.