com.sun.sgs.io
Interface Endpoint<T>

Type Parameters:
T - the address family encapsulated by this Endpoint
All Known Implementing Classes:
SocketEndpoint

public interface Endpoint<T>

Represents an abstract remote communication endpoint. Implementations of Endpoint encapsulate the active connection-creation mechanism for particular address families (such as SocketAddress).

Active connection initiation is accomplished by obtaining an Endpoint's Connector via createConnector().


Method Summary
 Connector<T> createConnector()
          Creates a Connector for actively initiating a connection to this remote Endpoint.
 T getAddress()
          Returns the address of type T encapsulated by this Endpoint.
 

Method Detail

createConnector

Connector<T> createConnector()
                             throws IOException
Creates a Connector for actively initiating a connection to this remote Endpoint.

Returns:
a Connector configured to connect to this Endpoint
Throws:
IOException - if a connector cannot be created

getAddress

T getAddress()
Returns the address of type T encapsulated by this Endpoint.

Returns:
the address encapsulated by this Endpoint

Project Darkstar, Version 0.9.7.3
2013-07-29 20:14:05

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved