public interface ClientSessionCreator
| Modifier and Type | Method and Description |
|---|---|
ConnectFuture |
connect(HostConfigEntry hostConfig) |
ConnectFuture |
connect(String username,
SocketAddress address)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(String username,
String host,
int port)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture connect(String username, String host, int port) throws IOException
HostConfigEntry and connects to itusername - The intended usernamehost - The target host name/address - never null/emptyport - The target portConnectFutureIOException - If failed to resolve the effective target or
connect to itconnect(HostConfigEntry)ConnectFuture connect(String username, SocketAddress address) throws IOException
HostConfigEntry and connects to itusername - The intended usernameaddress - The intended SocketAddress - never null. If
this is an InetSocketAddress then the effective HostConfigEntry
is resolved and used.ConnectFutureIOException - If failed to resolve the effective target or
connect to itconnect(HostConfigEntry)ConnectFuture connect(HostConfigEntry hostConfig) throws IOException
hostConfig - The effective HostConfigEntry to connect to - never nullConnectFutureIOException - If failed to create the connection futureCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.