com.sun.jini.lease.landlord
Class LandlordLease

java.lang.Object
  |
  +--com.sun.jini.lease.AbstractLease
        |
        +--com.sun.jini.lease.landlord.LandlordLease

public class LandlordLease
extends AbstractLease

Basic implementaion of net.jini.core.lease.Lease that works with the the Landlord protocol.

See Also:
Landlord, Serialized Form

Inner Class Summary
static class LandlordLease.Factory
          Implementation of LandlordLeaseFactory the produces LandlordLeases.
 
Fields inherited from class com.sun.jini.lease.AbstractLease
expiration, serialFormat
 
Method Summary
 boolean canBatch(Lease lease)
           
 void cancel()
           
 LeaseMap createLeaseMap(long duration)
           
protected  long doRenew(long renewDuration)
           
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.jini.lease.AbstractLease
getExpiration, getSerialFormat, renew, setSerialFormat
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

cancel

public void cancel()
            throws UnknownLeaseException,
                   java.rmi.RemoteException

doRenew

protected long doRenew(long renewDuration)
                throws LeaseDeniedException,
                       UnknownLeaseException,
                       java.rmi.RemoteException
Overrides:
doRenew in class AbstractLease

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

canBatch

public boolean canBatch(Lease lease)

createLeaseMap

public LeaseMap createLeaseMap(long duration)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999 Sun Microsystems, Inc. All rights reserved