public interface ClientSessionCreator
Modifier and Type | Method and Description |
---|---|
ConnectFuture |
connect(HostConfigEntry hostConfig) |
ConnectFuture |
connect(java.lang.String username,
java.net.SocketAddress address)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(java.lang.String username,
java.lang.String host,
int port)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture connect(java.lang.String username, java.lang.String host, int port) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernamehost
- The target host name/address - never null
/emptyport
- The target portConnectFuture
java.io.IOException
- If failed to resolve the effective target or
connect to itconnect(HostConfigEntry)
ConnectFuture connect(java.lang.String username, java.net.SocketAddress address) throws java.io.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.ConnectFuture
java.io.IOException
- If failed to resolve the effective target or
connect to itconnect(HostConfigEntry)
ConnectFuture connect(HostConfigEntry hostConfig) throws java.io.IOException
hostConfig
- The effective HostConfigEntry
to connect to - never null
ConnectFuture
java.io.IOException
- If failed to create the connection future