public class PeriodicGroupMap extends PeriodicGroupRunnable implements Map
| Modifier and Type | Field and Description |
|---|---|
protected Map |
map |
targetcontainerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriodheadTask, nextTask, previousTask| Constructor and Description |
|---|
PeriodicGroupMap(ScheduleableGroupAction target,
long runPeriod,
long timeoutPeriod,
boolean removeElementAfterAction)
Constructor of PeriodicGroupMap.
|
PeriodicGroupMap(ScheduleableGroupAction target,
long runPeriod,
long timeoutPeriod,
boolean removeElementAfterAction,
Map map)
Constructor of PeriodicGroupMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the elements.
|
boolean |
containsKey(Object key)
Checks if the map contains the key.
|
boolean |
containsValue(Object value)
Checks if the map contains the value.
|
Set |
entrySet()
Returns a Set view of entry in this map.
|
boolean |
equals(Object o)
Compares whether this map is equal to Object o.
|
Object |
get(Object key)
Gets the element assoicated with the key.
|
int |
hashCode()
Returns hash code of the map.
|
boolean |
isEmpty()
Indicates whether this PeriodicRunnable is empty.
|
Set |
keySet()
Returns the Set of keys of this map.
|
Object |
put(Object key,
Object value)
Puts the key and element to the map.
|
void |
putAll(Map m)
Puts all the elements in the map to this map.
|
Object |
remove(Object key)
Removes the element associated with the key.
|
void |
run()
Implements for TaskRunnable.
|
int |
size()
Returns the size of this map.
|
Collection |
values()
Returns the Collection of values of this map.
|
doGroupActionaddElement, 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, replaceAllprotected Map map
public PeriodicGroupMap(ScheduleableGroupAction target, long runPeriod, long timeoutPeriod, boolean removeElementAfterAction)
target - The ScheduleableGroupAction to run when there is timerunPeriod - Run period in mstimeoutPeriod - timeout period in msremoveElementAfterAction - A boolean to indicate whether to remove
the elements after actionpublic PeriodicGroupMap(ScheduleableGroupAction target, long runPeriod, long timeoutPeriod, boolean removeElementAfterAction, Map map) throws IllegalArgumentException
target - The ScheduleableGroupAction to run when there is timerunPeriod - Run period in mstimeoutPeriod - timeout period in msremoveElementAfterAction - A boolean to indicate whether to remove
the elements after actionmap - The synchronized map to useIllegalArgumentExceptionpublic boolean containsKey(Object key)
containsKey in interface Mapkey - The key of the elementpublic boolean containsValue(Object value)
containsValue in interface Mapvalue - The value of the elementpublic void putAll(Map m)
public Set keySet()
public Collection values()
public Set entrySet()
public boolean equals(Object o)
public int hashCode()
public boolean isEmpty()
isEmpty in interface TaskRunnableisEmpty in interface MapisEmpty in class PeriodicRunnablepublic void run()
run in interface Runnablerun in class PeriodicGroupRunnableCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.