Calculate the expiration and duration for an existing lease that is being renewed.
@param resource the server side representation of the lease that isbeing renewed
@param requestedDuration the duration the client is requesting. May beLease.ANY.
@return A Result that holdsboth the expiration and duration.
@throws LeaseDeniedException if the renewal request is denied.
@throws IllegalArgumentException if the requested duration is not Lease.ANY and is negative.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.