public class PeriodicCleanUpMap extends PeriodicGroupMap
maptargetcontainerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriodheadTask, 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, valuesdoGroupActionaddElement, getRunPeriod, getTimeoutPeriod, removeElementcancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPreviousclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 useIllegalArgumentExceptionpublic void run()
run in interface Runnablerun in class PeriodicGroupMapCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.