public class PeriodicGroupMap extends PeriodicGroupRunnable implements Map
Modifier and Type | Field and Description |
---|---|
protected Map |
map |
target
containerNeeded, nextTurn, removeElementAfterAction, runPeriod, thisTurn, timeoutPeriod
headTask, 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.
|
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
protected 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 useIllegalArgumentException
public boolean containsKey(Object key)
containsKey
in interface Map
key
- The key of the elementpublic boolean containsValue(Object value)
containsValue
in interface Map
value
- 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 TaskRunnable
isEmpty
in interface Map
isEmpty
in class PeriodicRunnable
public void run()
run
in interface Runnable
run
in class PeriodicGroupRunnable
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.