Re: LE.2.1 Characteristics of a Lease
"John McClain - Sun Microsystems, Inc." <[email protected]> Thu, 10 Jul 2008 09:51:06 -0400
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Gregg Wonderly wrote: > John McClain - Sun Microsystems, Inc. wrote: [...] >> It's not that the expiration can't go backwards, it is that it can >> only go backwards if the client asks for a duration that is sooner >> than the current expiration. So if after 5 minutes they ask for a >> renewal of an hour you have to give them at least the current >> expiration, but if after 5 minutes they ask for a 10 minute renewal, >> you can't give them a renewal further than 10 minutes into the future. > > Okay, I'm not sure I see the scenario where this wouldn't be tree if I > remove the if above and just always do > > le.expTime = now + inc; Your are right, it is not a problem if maxLeaseDuration is fixed ( it is an issue for us because in most our implementations maxLeaseDuration is configurable and thus might change over a lease's lifetime, Reggie takes this a steep further and dynamically varies the max lease duration it is willing to grant based on load). -- 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]