org.xlattice
Interface Connector


public interface Connector

Used to establish a Connection with another entity (Node). The notion is that a node has a collection of Connectors used for establishing Connections with Peers, neighboring nodes.

Author:
Jim Dixon

Method Summary
 Connection connect(EndPoint nearEnd, boolean blocking)
          Establish a Connection with another entity using the transport and address in the EndPoint.
 EndPoint getFarEnd()
           
 

Method Detail

connect

Connection connect(EndPoint nearEnd,
                   boolean blocking)
                   throws java.io.IOException
Establish a Connection with another entity using the transport and address in the EndPoint.

Parameters:
nearEnd - local end point to use for connection
blocking - whether the new Connection is to be blocking
Throws:
java.io.IOException

getFarEnd

EndPoint getFarEnd()
Returns:
the Acceptor EndPoint that this Connector is used to establish connections to