T - the address family encapsulated by this Endpointpublic interface Endpoint<T>
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().
| Modifier and Type | Method and Description |
|---|---|
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. |
Connector<T> createConnector() throws IOException
Connector for actively initiating a connection
to this remote Endpoint.Connector configured to connect to this
EndpointIOException - if a connector cannot be createdT getAddress()
T encapsulated by this
Endpoint.EndpointCopyright © 2007-2013. All Rights Reserved.