com.sun.jini.lease.landlord
Interface LandlordLeaseFactory

All Known Implementing Classes:
LandlordLease.Factory

public abstract interface LandlordLeaseFactory

Factory interface for classes that create Lease objects that follow the Landlord protocol.

See Also:
Landlord

Method Summary
 net.jini.core.lease.Lease newLease(java.lang.Object cookie, Landlord landlord, long duration)
          Create a new lease that works with landlord protocol.
 

Method Detail

newLease

public net.jini.core.lease.Lease newLease(java.lang.Object cookie,
                                          Landlord landlord,
                                          long duration)
                                   throws net.jini.core.lease.LeaseDeniedException
Create a new lease that works with landlord protocol.
Parameters:
cookie - Object that will be passed back to Landlord.renew() and Landlord.cancel()
landlord - The landlord to callback when the lease is renewed or canceled.
duration - The initial duration of the lease, this must be the initial duration of the lease, newLease() may not set the lease to have a different initial duration.
Throws:
net.jini.core.lease.LeaseDeniedException - may be thrown if the lease can not be allocated.


Copyright © 1999 Sun Microsystems, Inc. All rights reserved