|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that owners of leased resources must meet inorder to
work with the jini.lease.Lease
s returned by
LeaseDurationPolicy.leaseFor()
.
Lease
,
LeaseDurationPolicy
Inner Class Summary | |
static class |
Landlord.RenewResults
Simple class that holds return values of the Landlord.renewAll method. |
Method Summary | |
void |
cancel(java.lang.Object cookie)
Called by the lease when its cancel method is called. |
void |
cancelAll(java.lang.Object[] cookie)
Called by the lease map when its cancelAll method is called. |
long |
renew(java.lang.Object cookie,
long extension)
Called by the lease when its renew method is called. |
Landlord.RenewResults |
renewAll(java.lang.Object[] cookie,
long[] extension)
Called by the lease map when its renewAll method is called. |
Method Detail |
public long renew(java.lang.Object cookie, long extension) throws LeaseDeniedException, UnknownLeaseException, java.rmi.RemoteException
renew
method is called.cookie
- Associated with the lease when it was createdextension
- The duration argument passed to the
Lease.renew()
callLeasePolicy.leaseFor(com.sun.jini.lease.landlord.LeasedResource, long)
public void cancel(java.lang.Object cookie) throws UnknownLeaseException, java.rmi.RemoteException
cancel
method is called.cookie
- Associated with the lease when it was createdLeasePolicy.leaseFor(com.sun.jini.lease.landlord.LeasedResource, long)
public Landlord.RenewResults renewAll(java.lang.Object[] cookie, long[] extension) throws java.rmi.RemoteException
renewAll
method is called.cookie
- Associated with each lease when it was createdextension
- The duration argument for each lease from the mapLeasePolicy.leaseFor(com.sun.jini.lease.landlord.LeasedResource, long)
public void cancelAll(java.lang.Object[] cookie) throws LeaseMapException, java.rmi.RemoteException
cancelAll
method is called.cookie
- Associated with the lease when it was createdLeasePolicy.leaseFor(com.sun.jini.lease.landlord.LeasedResource, long)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |