Re: LE.2.1 Characteristics of a Lease

"John McClain - Sun Microsystems, Inc." <[email protected]> Wed, 9 Jul 2008 14:49:49 -0400
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Gregg Wonderly wrote:
> Bob Scheifler wrote:
>>> Is it possible for a lease renewal to extend the expiry time beyond 
>>> what the granter returned via Lease.getExpiration()'s value at the 
>>> time the Lease is created?
>>
>> Yes, that's pretty much the purpose of lease renewal.
> 
> Okay, so a lease, is open ended.  So the only way to expire the lease, 
> is to always return a relatively short duration in the granted leases 
> initial expiration. 

I wouldn't get overly focused on the initial expiration, if I grant an 
initial expiration 5 minutes in the future, and on the first renewal 
request I grant a renewal 5000 years in the future I am in the pretty 
much the same situation as if I granted a 5000 year lease initially. I 
think in all the lease granting code I have written or seen the policy 
used for the initial lease grant is the same as the policy used for 
renewals (and once renewal is granted, any previous expiration time is 
forgotten).

> It is possible, for an upper bound to be enforced 
> by the Landlord, but practically, that's not what should be done in most 
> cases, right?

I would say no. My experience is that most lease grantors (in my mind 
grantor == Landlord) *do* enforce an upper bound. The one exception that 
comes to mind is Outrigger in the case of entry leases. By default 
Outrigger is willing to grant Lease.FOREVER for Entry leases (but not 
event leases).

Does this help?


-- 
John McClain					[email protected]
Sun Microsystems, Inc.
Burlington, MA

And it is that way today. We are tricked by hope into starting
companies, beginning books, immigrating to this country and investing
in telecom networks. The challenges turn out to be tougher than we
imagined. Our excessive optimism is exposed. New skills are demanded.
But nothing important was ever begun in a prudential frame of mind.

         - David Brooks

--------------------------------------------------------------------------
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]