final class ConstrainableRegistrarLeaseMap extends RegistrarLeaseMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
(package private) static Method[] |
methodMappings
Mappings between Lease methods and Registrar lease-batching methods
|
registrarID, server| Constructor and Description |
|---|
ConstrainableRegistrarLeaseMap(RegistrarLease lease,
long duration)
Constructs lease map containing a mapping from the given constrainable
lease to the specified duration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContainKey(Object key)
Only allow leases permitted by RegistrarLeaseMap with compatible
constraints.
|
cancelAll, renewAllcontainsKey, containsValue, entrySet, get, put, removeclear, clone, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, valuesstatic final Method[] methodMappings
ConstrainableRegistrarLeaseMap(RegistrarLease lease, long duration)
public boolean canContainKey(Object key)
canContainKey in interface LeaseMap<RegistrarLease,Long>canContainKey in class RegistrarLeaseMapkey - an object that should be a leaseLease.canBatch(net.jini.core.lease.Lease)Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.