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, remove
clear, clone, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
private 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
LeaseMap
LeaseMapException
RemoteException
public void cancelAll() throws LeaseMapException, RemoteException
LeaseMap
LeaseMapException
RemoteException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.