Package org.apache.mina.transport.socket
Interface SocketConnector
-
- All Superinterfaces:
IoConnector
,IoService
- All Known Implementing Classes:
AprSocketConnector
,NioSocketConnector
public interface SocketConnector extends IoConnector
IoConnector
for socket transport (TCP/IP).- Author:
- Apache MINA Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InetSocketAddress
getDefaultRemoteAddress()
SocketSessionConfig
getSessionConfig()
void
setDefaultRemoteAddress(InetSocketAddress remoteAddress)
Sets the default remote InetSocketAddress to connect to when no argument is specified inIoConnector.connect()
method.-
Methods inherited from interface org.apache.mina.core.service.IoConnector
connect, connect, connect, connect, connect, connect, getConnectTimeout, getConnectTimeoutMillis, getDefaultLocalAddress, setConnectTimeout, setConnectTimeoutMillis, setDefaultLocalAddress, setDefaultRemoteAddress
-
Methods inherited from interface org.apache.mina.core.service.IoService
addListener, broadcast, dispose, dispose, getActivationTime, getFilterChain, getFilterChainBuilder, getHandler, getManagedSessionCount, getManagedSessions, getScheduledWriteBytes, getScheduledWriteMessages, getSessionDataStructureFactory, getStatistics, getTransportMetadata, isActive, isDisposed, isDisposing, removeListener, setFilterChainBuilder, setHandler, setSessionDataStructureFactory
-
-
-
-
Method Detail
-
getDefaultRemoteAddress
InetSocketAddress getDefaultRemoteAddress()
- Specified by:
getDefaultRemoteAddress
in interfaceIoConnector
- Returns:
- the default remote InetSocketAddress to connect to when no argument
is specified in
IoConnector.connect()
method. This method overrides theIoConnector.getDefaultRemoteAddress()
method.
-
getSessionConfig
SocketSessionConfig getSessionConfig()
- Specified by:
getSessionConfig
in interfaceIoService
- Returns:
- the default configuration of the new SocketSessions created by this connect service.
-
setDefaultRemoteAddress
void setDefaultRemoteAddress(InetSocketAddress remoteAddress)
Sets the default remote InetSocketAddress to connect to when no argument is specified inIoConnector.connect()
method. This method overrides theIoConnector.setDefaultRemoteAddress(java.net.SocketAddress)
method.- Parameters:
remoteAddress
- The remote address to set
-
-