public LandlordLease(Uuid cookie,
Create a new LandlordLease.
cookie - a Uuid that universally and uniquely
identifies the lease this object is to be a proxy for
landlord - Landlord object that will be used to
communicate renew and cancel requests to the granter
of the lease
landlordUuid - a universally unique id that has been
assigned to the server granting of the lease.
Ideally the Uuidlandlord.getUuid would
return if landlord implemented
ReferentUuid. Used to determine when
two leases can be batched together.
expiration - the initial expiration time of the lease in
milliseconds since the beginning of the epoch
Used by the lease holder to indicate that it is no longer interested
in the resource or information held by the lease. If the leased
information or resource could cause a callback to the lease holder
(or some other object on behalf of the lease holder), the lease
grantor should not issue such a callback after the lease has been
cancelled. The overall effect of a cancel call is the same as
lease expiration, but instead of happening at the end of a pre-agreed
duration it happens immediately.
Returns a boolean indicating whether or not the lease given as a
parameter can be batched (placed in the same LeaseMap) with the
current lease. Whether or not two Lease objects can be batched
is an implementation detail determined by the objects.
Creates a Map object that can contain leases whose renewal or
cancellation can be batched, and adds the current lease to that map.
The current lease is put in the map with the duration value given
by the parameter.