Project JXTA

net.jxta.impl.rendezvous.rdv
Class ClientConnection

java.lang.Object
  extended by net.jxta.impl.rendezvous.PeerConnection
      extended by net.jxta.impl.rendezvous.rdv.ClientConnection
All Implemented Interfaces:
EventListener, OutgoingMessageEventListener

public class ClientConnection
extends PeerConnection

Manages a connection with a client or a rendezvous peer.


Field Summary
 
Fields inherited from class net.jxta.impl.rendezvous.PeerConnection
cachedMessenger, connected, endpoint, group, leasedTil, peerid, peerName
 
Constructor Summary
ClientConnection(PeerGroup group, RendezVousServiceImpl rdvService, ID peer)
          Constructor for the PeerConnection object
 
Method Summary
 void connect(PeerAdvertisement padv, long leaseDuration)
          Declare that we are connected.
 
Methods inherited from class net.jxta.impl.rendezvous.PeerConnection
connect, equals, finalize, getCachedMessenger, getCachedMessenger, getLeaseEnd, getPeerID, getPeerName, hashCode, isConnected, messageSendFailed, messageSendSucceeded, sendMessage, setConnected, setLease, setPeerName, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientConnection

public ClientConnection(PeerGroup group,
                        RendezVousServiceImpl rdvService,
                        ID peer)
Constructor for the PeerConnection object

Parameters:
group - group context
endpoint - the endpoint service to use for sending messages.
peer - destination peerid
Method Detail

connect

public void connect(PeerAdvertisement padv,
                    long leaseDuration)
Declare that we are connected.


JXTA J2SE