Name

DiscoveryListener

Synopsis

Objects that implement this interface can be registered with a discovery service; when the discovery service locates a new advertisement, it will call the discoveryEvent( ) method of the registered object, passing it a DiscoveryEvent object.

public interface DiscoveryListener extends java.util.EventListener {
// Public Instance Methods
   public abstract void discoveryEvent(DiscoveryEvent event);  
}

Passed To

DiscoveryService.{addDiscoveryListener(), getRemoteAdvertisements(), removeDiscoveryListener()}

Get JXTA in a Nutshell 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.