public class InstantGroupRunnable extends InstantRunnable implements ScheduleableGroupAction
Modifier and Type | Field and Description |
---|---|
protected ScheduleableGroupAction |
target |
actions, allowToChange, removeElementAfterAction
headTask, nextTask, previousTask
Constructor and Description |
---|
InstantGroupRunnable(ScheduleableGroupAction target,
boolean removeElementAfterAction)
Constructor of InstantGroupRunnable.
|
Modifier and Type | Method and Description |
---|---|
void |
doGroupAction(Object obj)
The function to be run on the objects when there is time.
|
void |
run()
Implements for TaskRunnable.
|
addElement, getRunPeriod, isEmpty, removeElement, reset
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
protected ScheduleableGroupAction target
public InstantGroupRunnable(ScheduleableGroupAction target, boolean removeElementAfterAction)
target
- The ScheduleableGroupAction interface to be run on the
objects when there is timeremoveElementAfterAction
- Whether to remove the elements after
running the ScheduleableGroupAction on the objectspublic void run()
run
in interface Runnable
run
in class InstantRunnable
public void doGroupAction(Object obj)
doGroupAction
in interface ScheduleableGroupAction
obj
- The object the function act onCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.