Name
DiscoveryEvent
Synopsis
Discovery event
objects are sent by the discovery service whenever it locates a new
resource. Discovery event handling follows the standard Java design
pattern: an object that implements the
DiscoveryListener
interface is registered with the
discovery service, and discovery events are sent to the
discoveryEvent( )
method of the listener.
The query ID of a discovery event
matches the ID returned from the getRemoteAdvertisements( )
method of the discovery service. This usage is now
deprecated, and the query ID should be ignored.
public class DiscoveryEvent extends java.util.EventObject { // Public Constructors public DiscoveryEvent(Object source, net.jxta.protocol.DiscoveryResponseMsg response, int queryid); // Public Instance Methods public int getQueryID(); public net.jxta.protocol.DiscoveryResponseMsg getResponse(); }
Passed To
DiscoveryListener.discoveryEvent()
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.