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
 Lease newLease(java.lang.Object cookie, Landlord landlord, long duration)
          Create a new lease that works with landlord protocol.
 

Method Detail

newLease

public Lease newLease(java.lang.Object cookie,
                      Landlord landlord,
                      long duration)
               throws 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:
LeaseDeniedException - may be thrown if the lease can not be allocated.


Copyright © 1999 Sun Microsystems, Inc. All rights reserved