K
- key typeV
- value typepublic interface LeaseMap<K,V> extends Map<K,V>
Modifier and Type | Method and Description |
---|---|
void |
cancelAll()
Cancels all leases in the LeaseMap.
|
boolean |
canContainKey(Object key)
Returns true if the given object is a Lease which can be renewed
and cancelled in a batch with other leases in the map.
|
void |
renewAll()
Renews all leases in the LeaseMap, using their current values as
the renewal durations.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
boolean canContainKey(Object key)
key
- an object that should be a leaseLease.canBatch(net.jini.core.lease.Lease)
void renewAll() throws LeaseMapException, RemoteException
LeaseMapException
- if one or more lease renewals fail.RemoteException
- if a connection problem occurs.void cancelAll() throws LeaseMapException, RemoteException
LeaseMapException
- if one or more lease cancellations fail.RemoteException
- if a connection problem occurs.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.