Name
PeerInfoEvent
Synopsis
PeerInfoEvent
objects are sent to
PeerInfoListener
objects that are registered to be
notified when new peer information advertisements are available. The
event contains the advertisement itself along with a query ID; the
query ID can be tested against the return value from the peer
information service’s getRemotePeerInfo( )
method to determine if this particular event matches a
request that the application has made.
public class PeerInfoEvent extends java.util.EventObject { // Public Constructors public PeerInfoEvent(Object source, net.jxta.protocol.PeerInfoResponseMessage piResp, int queryid); // Public Instance Methods public net.jxta.protocol.PeerInfoResponseMessage getPPeerInfoResponseMessage(); public int getQueryID(); }
Passed To
PeerInfoListener.peerInfoResponse()
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.