|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.lease.AbstractLeaseMap
com.sun.jini.reggie.RegistrarLeaseMap
class RegistrarLeaseMap
The LeaseMap implementation class for registrar leases. Clients only see instances via the LeaseMap interface.
Field Summary | |
---|---|
(package private) ServiceID |
registrarID
The registrar's service ID. |
private static long |
serialVersionUID
|
(package private) Registrar |
server
The registrar. |
Fields inherited from class com.sun.jini.lease.AbstractLeaseMap |
---|
map |
Constructor Summary | |
---|---|
RegistrarLeaseMap(RegistrarLease lease,
long duration)
Simple constructor |
|
RegistrarLeaseMap(Registrar server,
RegistrarLease lease,
long duration)
Constructor used by ConstrainableRegistrarLeaseMap |
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.jini.lease.AbstractLeaseMap |
---|
checkKey, checkValue, clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
final Registrar server
final ServiceID registrarID
Constructor Detail |
---|
RegistrarLeaseMap(RegistrarLease lease, long duration)
RegistrarLeaseMap(Registrar server, RegistrarLease lease, long duration)
Method Detail |
---|
public boolean canContainKey(Object key)
key
- an object that should be a lease
Lease.canBatch(net.jini.core.lease.Lease)
public void renewAll() throws LeaseMapException, RemoteException
LeaseMap
LeaseMapException
RemoteException
public void cancelAll() throws LeaseMapException, RemoteException
LeaseMap
LeaseMapException
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |