final class ConstrainableRegistrarLeaseMap extends RegistrarLeaseMap
Modifier and Type | Field and Description |
---|---|
(package private) static Method[] |
methodMappings
Mappings between Lease methods and Registrar lease-batching methods
|
registrarID, server
map
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, renewAll
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
static final Method[] methodMappings
ConstrainableRegistrarLeaseMap(RegistrarLease lease, long duration)
public boolean canContainKey(Object key)
canContainKey
in interface LeaseMap
canContainKey
in class RegistrarLeaseMap
key
- 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.