public class SpaceLeaseMap extends AbstractLeaseMap
map
Constructor and Description |
---|
SpaceLeaseMap(IDirectSpaceProxy spaceProxy,
boolean concurrent) |
Modifier and Type | Method and Description |
---|---|
void |
cancelAll()
Cancels all leases in the LeaseMap.
|
boolean |
canContainKey(Object key)
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 |
renewAll()
Renews all leases in the LeaseMap, using their current values as the renewal durations.
|
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public SpaceLeaseMap(IDirectSpaceProxy spaceProxy, boolean concurrent)
public boolean canContainKey(Object key)
LeaseMap
key
- an object that should be a leaseLease.canBatch(net.jini.core.lease.Lease)
public void renewAll() throws LeaseMapException
LeaseMap
LeaseMapException
public void cancelAll() throws LeaseMapException
LeaseMap
LeaseMapException
Copyright © GigaSpaces.