public interface DesiredExpirationListener extends LeaseListener
LeaseListenerthat clients must implement if they want to receive desired expiration reached events in addition to renewal failure events.
void expirationReached(LeaseRenewalEvent e)
getExceptionmethod of the passed event will always return
Note that, prior to invoking this method, the
LeaseRenewalManager removes the affected lease from
the managed set of leases. Note also that, because of the
reentrancy guarantee made by the
LeaseRenewalManager, it is safe to call back into
the renewal manager from this method.
e- instance of
LeaseRenewalEventcontaining information about the lease that was removed from the
LeaseRenewalManagerbecause its desired expiration was reached
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.