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 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, getCachedMessenger, getCachedMessenger, getLeaseEnd, getPeerID, getPeerName, hashCode, isConnected, messageSendFailed, messageSendSucceeded, sendMessage, setConnected, setLease, setPeerName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientConnection

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

Parameters:
group - The group context.
rdvService - The rendezvous service instance this connection is associated with.
peer - The peer id of the connection.
Method Detail

connect

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

Parameters:
padv - The peer advertisement of the peer.
leaseDuration - The duration of the lease which is offered to the client.

JXSE