com.sun.jini.example.browser
Class Browser.LeaseNotify

java.lang.Object
  extended by com.sun.jini.example.browser.Browser.LeaseNotify
All Implemented Interfaces:
EventListener, LeaseListener
Enclosing class:
Browser

static class Browser.LeaseNotify
extends Object
implements LeaseListener


Constructor Summary
Browser.LeaseNotify()
           
 
Method Summary
 void notify(LeaseRenewalEvent ev)
          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
 

Constructor Detail

Browser.LeaseNotify

Browser.LeaseNotify()
Method Detail

notify

public void notify(LeaseRenewalEvent ev)
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:
ev - 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.