Project JXTA

net.jxta.peer
Class PeerInfoEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.jxta.peer.PeerInfoEvent
All Implemented Interfaces:
Serializable

public class PeerInfoEvent
extends EventObject

Container for PeerInfoEvent events.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PeerInfoEvent(Object source, PeerInfoResponseMessage piResp, int queryid)
          Creates a new event
 
Method Summary
 PeerInfoResponseMessage getPeerInfoResponseMessage()
          Returns the response associated with the event
 int getQueryID()
          Returns The query id associated with the response returned in this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeerInfoEvent

public PeerInfoEvent(Object source,
                     PeerInfoResponseMessage piResp,
                     int queryid)
Creates a new event

Parameters:
source - The object on which the Event initially occurred
queryid - The query id associated with the response returned in this event
piResp - PeerInfoResponseMessage received
See Also:
ResolverResponseMsg
Method Detail

getPeerInfoResponseMessage

public PeerInfoResponseMessage getPeerInfoResponseMessage()
Returns the response associated with the event

Returns:
PeerInfoResponseMessage
See Also:
ResolverResponseMsg

getQueryID

public int getQueryID()
Returns The query id associated with the response returned in this event

Returns:
query id associated with the response

JXTA J2SE