public class PeriodicGroupRunnable extends PeriodicRunnable implements ScheduleableGroupAction
Modifier and Type | Field and Description |
---|---|
protected ScheduleableGroupAction |
target |
containerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriod
headTask, 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, removeElement
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
protected 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 objectsIllegalArgumentException
public void doGroupAction(Object obj)
doGroupAction
in interface ScheduleableGroupAction
obj
- The object the function act onpublic void run()
run
in interface Runnable
run
in class PeriodicRunnable
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.