class RegistrarLeaseMap extends AbstractLeaseMap
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.
|
map
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.
|
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
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-2016, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.