public interface LeaseRenewalService
LeaseRenewalService interface
that use an implementation-specific protocol to communicate with the
actual remote server. All of the proxy methods obey normal RMI remote
interface semantics. Two proxy objects are equal if they are proxies
for the same renewal service. Every method invocation (on both a
LeaseRenewalService and any LeaseRenewalSet
it has created) is atomic with respect to other invocations.LeaseRenewalSet| Modifier and Type | Method and Description |
|---|---|
LeaseRenewalSet |
createLeaseRenewalSet(long leaseDuration)
Create a new
LeaseRenewalSet that the client can
populate with leases to be renewed. |
LeaseRenewalSet createLeaseRenewalSet(long leaseDuration) throws RemoteException
LeaseRenewalSet that the client can
populate with leases to be renewed. The initial duration of the
lease granted on this set will be less than or equal to
leaseDuration.
Two calls to this method should never return objects that are equal.
leaseDuration - requested lease duration in millisecondsLeaseRenewalSet in the renewal serviceIllegalArgumentException - if leaseDuration is
not positive, Lease.ANY, or
Lease.FOREVERRemoteException - if a communication-related exception
occursCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.