com.sun.jini.lease
Class LeaseRenewalEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.sun.jini.lease.LeaseRenewalEvent

public class LeaseRenewalEvent
extends java.util.EventObject

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LeaseRenewalEvent(LeaseRenewalManager source, Lease lease, long expiration, java.lang.Exception ex)
          Construct an event.
 
Method Summary
 java.lang.Exception getException()
          Returns the exception, if any.
 long getExpiration()
          Returns the desired absolute expiration for the lease.
 Lease getLease()
          Returns the lease that failed to renew.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LeaseRenewalEvent

public LeaseRenewalEvent(LeaseRenewalManager source,
                         Lease lease,
                         long expiration,
                         java.lang.Exception ex)
Construct an event.
Parameters:
source - the lease renewal manager that generates the event
lease - the lease that failed to renew
expiration - the desired absolute expiration for the lease
ex - the exception, if any
Method Detail

getLease

public Lease getLease()
Returns the lease that failed to renew.

getExpiration

public long getExpiration()
Returns the desired absolute expiration for the lease.

getException

public java.lang.Exception getException()
Returns the exception, if any. If the lease was denied, then this will be a LeaseDeniedException. If the lease expired, this will be a LeaseUnknownException, a RemoteException, or null.


Copyright © 1999 Sun Microsystems, Inc. All rights reserved