net.jini.lookup
Class ServiceDiscoveryManager.LeaseListenerImpl

java.lang.Object
  extended by net.jini.lookup.ServiceDiscoveryManager.LeaseListenerImpl
All Implemented Interfaces:
EventListener, LeaseListener
Enclosing class:
ServiceDiscoveryManager

private final class ServiceDiscoveryManager.LeaseListenerImpl
extends Object
implements LeaseListener

The Listener class for the LeaseRenewalManager.


Field Summary
private  ServiceRegistrar proxy
           
 
Constructor Summary
ServiceDiscoveryManager.LeaseListenerImpl(ServiceRegistrar proxy)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

private ServiceRegistrar proxy
Constructor Detail

ServiceDiscoveryManager.LeaseListenerImpl

public ServiceDiscoveryManager.LeaseListenerImpl(ServiceRegistrar proxy)
Method Detail

notify

public void notify(LeaseRenewalEvent e)
Description copied from interface: LeaseListener
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.

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.

Specified by:
notify in interface LeaseListener
Parameters:
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 lease


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.