| Package | Description |
|---|---|
| org.apache.mina.core.polling |
Base class for implementing transport based on active polling strategies like NIO select call, or any API
based on I/O polling system calls (epoll, poll, select, kqueue, etc).
|
| org.apache.mina.core.service | |
| org.apache.mina.core.session | |
| org.apache.mina.transport.socket.nio |
Socket (TCP/IP) and Datagram (UDP/IP) support based on Java
NIO (New I/O) API.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPollingIoProcessor<T extends AbstractIoSession>
An abstract implementation of
IoProcessor which helps
transport developers to write an IoProcessor easily. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
AbstractPollingIoAcceptor.accept(IoProcessor<T> processor,
H handle)
Accept a client connection for a server socket and return a new
IoSession
associated with the given IoProcessor |
protected abstract T |
AbstractPollingIoConnector.newSession(IoProcessor<T> processor,
H handle)
Create a new
IoSession from a connected socket client handle. |
protected abstract T |
AbstractPollingConnectionlessIoAcceptor.newSession(IoProcessor<T> processor,
H handle,
SocketAddress remoteAddress) |
| Constructor and Description |
|---|
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
Executor executor,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoAcceptor. |
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoAcceptor. |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
Executor executor,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoConnector. |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoConnector. |
| Constructor and Description |
|---|
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
Class<? extends IoProcessor<T>> processorClass)
Constructor for
AbstractPollingIoAcceptor. |
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
Class<? extends IoProcessor<T>> processorClass,
int processorCount)
Constructor for
AbstractPollingIoAcceptor. |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
Class<? extends IoProcessor<T>> processorClass)
Constructor for
AbstractPollingIoConnector. |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
Class<? extends IoProcessor<T>> processorClass,
int processorCount)
Constructor for
AbstractPollingIoConnector. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleIoProcessorPool<T extends AbstractIoSession>
|
| Constructor and Description |
|---|
SimpleIoProcessorPool(Class<? extends IoProcessor<T>> processorType) |
SimpleIoProcessorPool(Class<? extends IoProcessor<T>> processorType,
Executor executor) |
SimpleIoProcessorPool(Class<? extends IoProcessor<T>> processorType,
Executor executor,
int size) |
SimpleIoProcessorPool(Class<? extends IoProcessor<T>> processorType,
int size) |
| Modifier and Type | Method and Description |
|---|---|
abstract IoProcessor |
AbstractIoSession.getProcessor()
TODO Add method documentation
|
IoProcessor<AbstractIoSession> |
DummySession.getProcessor() |
| Modifier and Type | Class and Description |
|---|---|
class |
NioProcessor
TODO Add documentation
|
| Modifier and Type | Method and Description |
|---|---|
protected NioSession |
NioSocketAcceptor.accept(IoProcessor<NioSession> processor,
ServerSocketChannel handle)
Accept a client connection for a server socket and return a new
IoSession
associated with the given IoProcessor |
protected NioSession |
NioDatagramConnector.newSession(IoProcessor<NioSession> processor,
DatagramChannel handle) |
protected NioSession |
NioDatagramAcceptor.newSession(IoProcessor<NioSession> processor,
DatagramChannel handle,
SocketAddress remoteAddress) |
protected NioSession |
NioSocketConnector.newSession(IoProcessor<NioSession> processor,
SocketChannel handle)
Create a new
IoSession from a connected socket client handle. |
| Constructor and Description |
|---|
NioDatagramConnector(IoProcessor<NioSession> processor)
Creates a new instance.
|
NioSocketAcceptor(Executor executor,
IoProcessor<NioSession> processor)
Constructor for
NioSocketAcceptor with a given Executor for handling
connection events and a given IoProcessor for handling I/O events, useful for
sharing the same processor and executor over multiple IoService of the same type. |
NioSocketAcceptor(IoProcessor<NioSession> processor)
Constructor for
NioSocketAcceptor with default configuration but a
specific IoProcessor, useful for sharing the same processor over multiple
IoService of the same type. |
NioSocketConnector(Executor executor,
IoProcessor<NioSession> processor)
Constructor for
NioSocketConnector with a given Executor for handling
connection events and a given IoProcessor for handling I/O events, useful for sharing
the same processor and executor over multiple IoService of the same type. |
NioSocketConnector(IoProcessor<NioSession> processor)
Constructor for
NioSocketConnector with default configuration but a
specific IoProcessor, useful for sharing the same processor over multiple
IoService of the same type. |
| Constructor and Description |
|---|
NioDatagramConnector(Class<? extends IoProcessor<NioSession>> processorClass)
Constructor for
NioDatagramConnector with default configuration with default configuration which will use a built-in
thread pool executor to manage the default number of processor instances. |
NioDatagramConnector(Class<? extends IoProcessor<NioSession>> processorClass,
int processorCount)
Constructor for
NioDatagramConnector with default configuration which will use a built-in
thread pool executor to manage the given number of processor instances. |
NioSocketConnector(Class<? extends IoProcessor<NioSession>> processorClass)
Constructor for
NioSocketConnector with default configuration with default configuration which will use a built-in
thread pool executor to manage the default number of processor instances. |
NioSocketConnector(Class<? extends IoProcessor<NioSession>> processorClass,
int processorCount)
Constructor for
NioSocketConnector with default configuration which will use a built-in
thread pool executor to manage the given number of processor instances. |
Copyright © 2004–2017. All rights reserved.