public interface ClientSessionCreator
Modifier and Type | Method and Description |
---|---|
default ConnectFuture |
connect(HostConfigEntry hostConfig) |
default ConnectFuture |
connect(HostConfigEntry hostConfig,
AttributeRepository context) |
ConnectFuture |
connect(HostConfigEntry hostConfig,
AttributeRepository context,
java.net.SocketAddress localAddress) |
default ConnectFuture |
connect(HostConfigEntry hostConfig,
java.net.SocketAddress localAddress) |
default ConnectFuture |
connect(java.lang.String username,
java.net.SocketAddress address)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(java.lang.String username,
java.net.SocketAddress address,
AttributeRepository context)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(java.lang.String username,
java.net.SocketAddress targetAddress,
AttributeRepository context,
java.net.SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(java.lang.String username,
java.net.SocketAddress targetAddress,
java.net.SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(java.lang.String username,
java.lang.String host,
int port)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(java.lang.String username,
java.lang.String host,
int port,
AttributeRepository context)
Resolves the effective
HostConfigEntry and connects to it |
ConnectFuture |
connect(java.lang.String username,
java.lang.String host,
int port,
AttributeRepository context,
java.net.SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default ConnectFuture |
connect(java.lang.String username,
java.lang.String host,
int port,
java.net.SocketAddress localAddress)
Resolves the effective
HostConfigEntry and connects to it |
default 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)
default ConnectFuture connect(java.lang.String username, java.lang.String host, int port, AttributeRepository context) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernamehost
- The target host name/address - never null
/emptyport
- The target portcontext
- An optional "context" to be attached to the established session if successfully
connectedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itdefault ConnectFuture connect(java.lang.String username, java.lang.String host, int port, java.net.SocketAddress localAddress) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernamehost
- The target host name/address - never null
/emptyport
- The target portlocalAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itconnect(HostConfigEntry)
ConnectFuture connect(java.lang.String username, java.lang.String host, int port, AttributeRepository context, java.net.SocketAddress localAddress) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernamehost
- The target host name/address - never null
/emptyport
- The target portcontext
- An optional "context" to be attached to the established session if successfully
connectedlocalAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itdefault 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)
default ConnectFuture connect(java.lang.String username, java.net.SocketAddress address, AttributeRepository context) 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.context
- An optional "context" to be attached to the established session if successfully
connectedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itdefault ConnectFuture connect(java.lang.String username, java.net.SocketAddress targetAddress, java.net.SocketAddress localAddress) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernametargetAddress
- The intended target SocketAddress
- never null
. If this is an
InetSocketAddress
then the effective HostConfigEntry
is
resolved and used.localAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itconnect(HostConfigEntry)
ConnectFuture connect(java.lang.String username, java.net.SocketAddress targetAddress, AttributeRepository context, java.net.SocketAddress localAddress) throws java.io.IOException
HostConfigEntry
and connects to itusername
- The intended usernametargetAddress
- The intended target SocketAddress
- never null
. If this is an
InetSocketAddress
then the effective HostConfigEntry
is
resolved and used.context
- An optional "context" to be attached to the established session if successfully
connectedlocalAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to resolve the effective target or connect to itdefault 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 futuredefault ConnectFuture connect(HostConfigEntry hostConfig, AttributeRepository context) throws java.io.IOException
hostConfig
- The effective HostConfigEntry
to connect to - never null
context
- An optional "context" to be attached to the established session if successfully
connectedConnectFuture
java.io.IOException
- If failed to create the connection futuredefault ConnectFuture connect(HostConfigEntry hostConfig, java.net.SocketAddress localAddress) throws java.io.IOException
hostConfig
- The effective HostConfigEntry
to connect to - never null
localAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to create the connection futureConnectFuture connect(HostConfigEntry hostConfig, AttributeRepository context, java.net.SocketAddress localAddress) throws java.io.IOException
hostConfig
- The effective HostConfigEntry
to connect to - never null
context
- An optional "context" to be attached to the established session if successfully
connectedlocalAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedConnectFuture
java.io.IOException
- If failed to create the connection future