LM.5. Supporting Interfaces and Classes

The LeaseRenewalManager utility class depends on the interfaces LeaseListener and DesiredExpirationListener. Both of these interfaces reference one class, LeaseRenewalEvent.

LM.5.1. The LeaseListener Interface

The public methods specified by the LeaseListener interface are as follows:

package net.jini.lease; 

public interface LeaseListener extends EventListener 
{
    void notify(LeaseRenewalEvent e); 
} 

The LeaseListener interface defines the mechanism through which the client receives notification of renewal failure events generated by the renewal manager. These events are delivered using the notify method. Renewal failure events are generated when the LeaseRenewalManager has failed to renew one of the leases ...

Get Jini™ Specifications, The, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.