Re: LE.2.1 Characteristics of a Lease

Gregg Wonderly <[email protected]> Thu, 10 Jul 2008 00:04:25 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Bob Scheifler wrote:
>> Okay, so a lease, is open ended.
> 
> Many leases are, but a lease doesn't have to be open ended.
> Your policy could for example be to hand out an initial 30 minute lease,
> and then deny all attempts to renew past that original expiration.
> Or your policy could be to hand out an initial 5 minute lease,
> and then honor renewals as long as they don't extend the
> expiration more than 6 hours past the original expiration.

Okay, but since none of this is visible as part of the "API" that exists from 
LeaseFactory/Landlord's perspective, I believe this is a Landlord implementation 
detail.  That's why I said before, that the Landlord might be more integrated 
into the granter than the interface alludes to, so that the granter can either 
be a part of what renew() decides, or provide additional parameters when 
creating an instance of a particular Landlord implementation.

Gregg Wonderly

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]