public interface SocketConnector extends IoConnector
IoConnector
for socket transport (TCP/IP).限定符和类型 | 方法和说明 |
---|---|
java.net.InetSocketAddress |
getDefaultRemoteAddress() |
SocketSessionConfig |
getSessionConfig() |
void |
setDefaultRemoteAddress(java.net.InetSocketAddress remoteAddress)
Sets the default remote InetSocketAddress to connect to when no argument is
specified in
IoConnector.connect() method. |
connect, connect, connect, connect, connect, connect, getConnectTimeout, getConnectTimeoutMillis, getDefaultLocalAddress, setConnectTimeout, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddress
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
java.net.InetSocketAddress getDefaultRemoteAddress()
getDefaultRemoteAddress
在接口中 IoConnector
IoConnector.connect()
method.
This method overrides the IoConnector.getDefaultRemoteAddress()
method.SocketSessionConfig getSessionConfig()
getSessionConfig
在接口中 IoService
void setDefaultRemoteAddress(java.net.InetSocketAddress remoteAddress)
IoConnector.connect()
method.
This method overrides the IoConnector.setDefaultRemoteAddress(java.net.SocketAddress)
method.remoteAddress
- The remote address to set