Package | Description |
---|---|
org.apache.mina.transport.nio |
Transport implementations base on NIO (New I/O),
Channel |
org.apache.mina.transport.tcp |
Shared plumber for TCP transport implementations.
|
Modifier and Type | Method and Description |
---|---|
TcpSessionConfig |
NioTcpSession.getConfig()
Gets the session configuration, it where the idle timeout are set and other transport specific configuration.
|
Constructor and Description |
---|
NioTcpServer(TcpSessionConfig config)
Create a TCP server with new selector pool of default size and a
IoHandlerExecutor of default type (
OrderedHandlerExecutor ) |
NioTcpServer(TcpSessionConfig config,
SelectorLoopPool selectorLoopPool,
IoHandlerExecutor handlerExecutor)
Create a TCP server with provided selector loops pool.
|
NioTcpServer(TcpSessionConfig config,
SelectorLoop acceptSelectorLoop,
SelectorLoopPool readWriteSelectorLoop,
IoHandlerExecutor handlerExecutor)
Create a TCP server with provided selector loops pool
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTcpSessionConfig
Implementation for the socket session configuration.
|
class |
ProxyTcpSessionConfig
This class proxy the inner java.net.Socket configuration with the SocketSessionConfig of the session.
|
Modifier and Type | Method and Description |
---|---|
TcpSessionConfig |
AbstractTcpServer.getSessionConfig()
Returns the default configuration of the new
IoSession s created by this service. |
TcpSessionConfig |
AbstractTcpClient.getSessionConfig()
Returns the default configuration of the new
IoSession s created by this service. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTcpServer.setSessionConfig(TcpSessionConfig config)
Set the default configuration for created TCP sessions
|
void |
AbstractTcpClient.setSessionConfig(TcpSessionConfig config)
Set the default configuration for created TCP sessions
|
Constructor and Description |
---|
AbstractTcpServer(TcpSessionConfig config,
IoHandlerExecutor eventExecutor)
Create an new AbsractTcpServer instance, with a specific configuration
|
Copyright © 2009–2013 Apache MINA Project. All rights reserved.