net.jxta.impl.rendezvous.rdv
Class ClientConnection
java.lang.Object
net.jxta.impl.rendezvous.PeerConnection
net.jxta.impl.rendezvous.rdv.ClientConnection
- All Implemented Interfaces:
- EventListener, OutgoingMessageEventListener
public class ClientConnection
- extends PeerConnection
Manages a connection with a client peer.
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 |
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.
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.