Package com.sun.jini.landlord
Class ConstrainableLandlordLeaseMap
java.lang.Object
com.sun.jini.lease.AbstractLeaseMap
com.sun.jini.landlord.LandlordLeaseMap
com.sun.jini.landlord.ConstrainableLandlordLeaseMap
Constrainable sub-class of
LandlordLeaseMap.- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Field Summary
Fields inherited from class com.sun.jini.lease.AbstractLeaseMap
map -
Method Summary
Modifier and TypeMethodDescriptionbooleancanContainKey(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.Methods inherited from class com.sun.jini.landlord.LandlordLeaseMap
cancelAll, renewAllMethods inherited from class com.sun.jini.lease.AbstractLeaseMap
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods 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- Overrides:
canContainKeyin classLandlordLeaseMap- Parameters:
key- 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:
-