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 |
Method Summary |
java.lang.Exception |
getException()
Returns the exception, if any. |
long |
getExpiration()
Returns the desired absolute expiration for the lease. |
net.jini.core.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 |
LeaseRenewalEvent
public LeaseRenewalEvent(LeaseRenewalManager source,
net.jini.core.lease.Lease lease,
long expiration,
java.lang.Exception ex)
- Construct an event.
- Parameters:
source
- the lease renewal manager that generates the eventlease
- the lease that failed to renewexpiration
- the desired absolute expiration for the leaseex
- the exception, if any
getLease
public net.jini.core.lease.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