public class LeaseMapProxy extends Object implements LeaseMap, Serializable
Modifier and Type | Method and Description |
---|---|
void |
cancelAll()
Cancels all leases in the LeaseMap.
|
boolean |
canContainKey(Object obj)
Returns true if the given object is a Lease which can be renewed and cancelled in a batch
with other leases in the map.
|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
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 t) |
Object |
remove(Object key) |
void |
renewAll()
Renews all leases in the LeaseMap, using their current values as the renewal durations.
|
int |
size() |
Collection |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public boolean canContainKey(Object obj)
LeaseMap
canContainKey
in interface LeaseMap
obj
- an object that should be a leaseLease.canBatch(net.jini.core.lease.Lease)
public void cancelAll() throws LeaseMapException, RemoteException
LeaseMap
cancelAll
in interface LeaseMap
LeaseMapException
RemoteException
public void renewAll() throws LeaseMapException, RemoteException
LeaseMap
renewAll
in interface LeaseMap
LeaseMapException
RemoteException
public boolean containsKey(Object o)
containsKey
in interface Map
public boolean containsValue(Object o)
containsValue
in interface Map
public boolean equals(Object o)
public int hashCode()
public Collection values()
Copyright © GigaSpaces.