public class PeriodicCleanUpMap extends PeriodicGroupMap
map
target
containerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriod
headTask, nextTask, previousTask
Constructor and Description |
---|
PeriodicCleanUpMap(long runPeriod,
long timeoutPeriod)
Constructor of PeriodicCleanUpMap.
|
PeriodicCleanUpMap(long runPeriod,
long timeoutPeriod,
Map map)
Constructor of PeriodicCleanUpMap.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Remove the timed out elements in the map and swap the containers.
|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
doGroupAction
addElement, getRunPeriod, getTimeoutPeriod, removeElement
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public PeriodicCleanUpMap(long runPeriod, long timeoutPeriod)
runPeriod
- Run period in mstimeoutPeriod
- timeout period in mspublic PeriodicCleanUpMap(long runPeriod, long timeoutPeriod, Map map) throws IllegalArgumentException
runPeriod
- Run period in mstimeoutPeriod
- timeout period in msmap
- The synchronized map to useIllegalArgumentException
public void run()
run
in interface Runnable
run
in class PeriodicGroupMap
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.