The Lease interface defines a type of object that is returned to the lease holder and issued by the lease grantor.
An unsynchronized Map from Lease to Long (the duration to use when renewing the lease).
An exception generated when a lease request or renewal is denied.
Generic superclass for specific lease exceptions.
An exception generated when a LeaseMap renewAll or cancelAll call generates exceptions on one or more leases in the map.
An exception used to indicate that a lease is not known to the grantor of the lease.
Leaserepresents an agreement between lease holder and lease grantor over how long the grantor will keep a resource available. The grantor pledges to keep the resource available for at least as long as the remaining time of the lease. The holder typically requests a lease for a given time frame, and the grantor returns a
Leaseobject that represents the pledge it is actually willing to make (which may be different from the requested time). The grantor may allow the holder to renew the lease, thereby extending the pledge to a later time.
Copyright © GigaSpaces.