class RegistrarLeaseMap extends AbstractIDLeaseMap<RegistrarLease>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
(package private) ServiceID |
registrarID
The registrar's service ID.
|
private static long |
serialVersionUID |
(package private) Registrar |
server
The registrar.
|
| Constructor and Description |
|---|
RegistrarLeaseMap(RegistrarLease lease,
long duration)
Simple constructor
|
RegistrarLeaseMap(Registrar server,
RegistrarLease lease,
long duration)
Constructor used by ConstrainableRegistrarLeaseMap
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelAll()
Cancels all leases in the LeaseMap.
|
boolean |
canContainKey(Object key)
Any RegistrarLease from the same server can be in the map
|
void |
renewAll()
Renews all leases in the LeaseMap, using their current values as
the renewal durations.
|
containsKey, 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, valuesprivate static final long serialVersionUID
final Registrar server
final ServiceID registrarID
RegistrarLeaseMap(RegistrarLease lease, long duration)
RegistrarLeaseMap(Registrar server, RegistrarLease lease, long duration)
public boolean canContainKey(Object key)
key - an object that should be a leaseLease.canBatch(net.jini.core.lease.Lease)public void renewAll()
throws LeaseMapException,
RemoteException
LeaseMapLeaseMapExceptionRemoteExceptionpublic void cancelAll()
throws LeaseMapException,
RemoteException
LeaseMapLeaseMapExceptionRemoteExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.