public class PeriodicGroupRunnable extends PeriodicRunnable implements ScheduleableGroupAction
| Modifier and Type | Field and Description |
|---|---|
protected ScheduleableGroupAction |
target |
containerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriodheadTask, nextTask, previousTask| Constructor and Description |
|---|
PeriodicGroupRunnable(ScheduleableGroupAction target,
long runPeriod,
long timeoutPeriod,
boolean removeElementAfterAction)
Constructor of PeriodicGroupRunnable.
|
| 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, getTimeoutPeriod, isEmpty, removeElementcancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPreviousprotected ScheduleableGroupAction target
public PeriodicGroupRunnable(ScheduleableGroupAction target, long runPeriod, long timeoutPeriod, boolean removeElementAfterAction) throws IllegalArgumentException
target - The ScheduleableGroupAction interface to be run on the
objects when there is timerunPeriod - Run period in mstimeoutPeriod - timeout period in msremoveElementAfterAction - Whether to remove the elements after
running the ScheduleableGroupAction on the objectsIllegalArgumentExceptionpublic void doGroupAction(Object obj)
doGroupAction in interface ScheduleableGroupActionobj - The object the function act onpublic void run()
run in interface Runnablerun in class PeriodicRunnableCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.