private final class ServiceDiscoveryManager.LeaseListenerImpl extends Object implements LeaseListener
Modifier and Type | Field and Description |
---|---|
private ServiceRegistrar |
proxy |
Constructor and Description |
---|
LeaseListenerImpl(ServiceRegistrar proxy) |
Modifier and Type | Method and Description |
---|---|
void |
notify(LeaseRenewalEvent e)
Called by the
LeaseRenewalManager when it cannot
renew a lease that it is managing, and the lease's desired
expiration time has not yet been reached. |
private final ServiceRegistrar proxy
public LeaseListenerImpl(ServiceRegistrar proxy)
public void notify(LeaseRenewalEvent e)
LeaseListener
LeaseRenewalManager
when it cannot
renew a lease that it is managing, and the lease's desired
expiration time has not yet been reached.
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
, new leases can be safely added
by this method.
notify
in interface LeaseListener
e
- instance of LeaseRenewalEvent
containing
information about the lease that the
LeaseRenewalManager
was unable to renew, as
well as information about the condition that made the
LeaseRenewalManager
fail to renew the leaseCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.