Package com.j_spaces.core
Class LeaseMapProxy
java.lang.Object
com.j_spaces.core.LeaseMapProxy
- All Implemented Interfaces:
Serializable,Map,LeaseMap
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels all leases in the LeaseMap.booleancanContainKey(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.voidclear()booleanbooleanentrySet()booleaninthashCode()booleanisEmpty()keySet()voidvoidrenewAll()Renews all leases in the LeaseMap, using their current values as the renewal durations.intsize()values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
canContainKey
Description copied from interface:LeaseMapReturns true if the given object is a Lease which can be renewed and cancelled in a batch with other leases in the map. Whether or not two Lease objects can be batched is an implementation detail determined by the objects.- Specified by:
canContainKeyin interfaceLeaseMap- Parameters:
obj- an object that should be a lease- Returns:
- true if the lease can be renewed and cancelled in a a batch with other leases
- See Also:
-
cancelAll
Description copied from interface:LeaseMapCancels all leases in the LeaseMap. If all cancels are successful, returns normally (leaving all leases in the map). Otherwise, removes all leases that failed to cancel from the LeaseMap, and throws LeaseMapException.- Specified by:
cancelAllin interfaceLeaseMap- Throws:
LeaseMapExceptionRemoteException
-
renewAll
Description copied from interface:LeaseMapRenews all leases in the LeaseMap, using their current values as the renewal durations. If all renewals are successful, returns normally. Otherwise, removes all leases that failed to renew from the LeaseMap, and throws LeaseMapException.- Specified by:
renewAllin interfaceLeaseMap- Throws:
LeaseMapExceptionRemoteException
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
entrySet
-
equals
-
get
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-