public interface LeaseListener extends EventListener
LeaseRenewalEvent instances must implement.
respect to an entity that uses the
LeaseRenewalManager to manage leases granted to
the entity, this interface defines the mechanism through which an entity receives notification
LeaseRenewalManager has failed to renew one of the leases the
LeaseRenewalManager is managing for the entity. Such renewal failures typically
occur because of one of the following conditions is met:
determines, prior to the next renewal attempt, that the actual expiration time of the lease has
passed, implying that any further attempt to renew the lease would be fruitless.
LeaseRenewalManager determines that
lease's actual expiration time has passed.
LeaseException occurs during a lease renewal attempt (collectively referred to as
LeaseRenewalManager. The object that implements this interface should define the
actions to take upon receipt of such notifications. Then, when one of the above conditions
LeaseRenewalManager will send an instance of the
LeaseRenewalEvent class to that listener object. Note that, prior to sending the
LeaseRenewalManager will remove the affected lease from its managed set
void notify(LeaseRenewalEvent e)
LeaseRenewalManager when it cannot renew a lease that it is
managing, and the lease's desired expiration time has not yet been reached.
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, new leases can be safely added by this method.
e - instance of
LeaseRenewalEvent containing information about the lease
LeaseRenewalManager was unable to renew, as well as
information about the condition that made the
to renew the lease
Copyright © GigaSpaces.