public abstract class AbstractLeaseMap extends Object implements LeaseMap
Modifier and Type | Field and Description |
---|---|
protected Map |
map
Map from Lease to Long(duration), where all leases have the same destination.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractLeaseMap(Lease lease,
long duration)
Default to using a small HashMap.
|
protected |
AbstractLeaseMap(Map map)
Provide a map of your choice.
|
protected |
AbstractLeaseMap(Map map,
Lease lease,
long duration)
Provide a map of your choice.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkKey(Object key)
Check that the key is valid for this map
|
protected static void |
checkValue(Object value)
Check that the value is a Long
|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map m) |
Object |
remove(Object key) |
int |
size() |
Collection |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
cancelAll, canContainKey, renewAll
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected final Map map
protected AbstractLeaseMap(Map map)
protected AbstractLeaseMap(Lease lease, long duration)
protected void checkKey(Object key)
protected static void checkValue(Object value)
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Collection values()
public boolean equals(Object o)
Copyright © GigaSpaces.