Project JXTA

net.jxta.rendezvous
Interface RendezVousManager


public interface RendezVousManager

This interface must be implemented by the program that controls, on the RendezVous peer, which peers can or cannot be connected.

Any peer in a peer group can become a rendezvous for a peer group. A rendezvous provides a long-range discovery mechanism where members of a peer group can find themselves. Rendezvous are advertised as part of the peer group advertisement of a peer group.

Since:
JXTA 1.0
See Also:
RendezVous, RendezVousMonitor, Discovery, PeerGroupAdvertisement

Method Summary
 long requestConnection(Advertisement adv)
          This is called by the RendezVous service each time a new Peer is requesting a connection.
 

Method Detail

requestConnection

public long requestConnection(Advertisement adv)
This is called by the RendezVous service each time a new Peer is requesting a connection. The RendezVous Manager returns zero if the peer is not authorized to be connected, otherwise returns a lease time (in milliseconds) for which the peer is authorized.
Parameters:
adv - Advertisment of the Peer to be connected
Returns:
long lease connection to the rendezvous
Since:
JXTA 1.0

Project JXTA