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()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access