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.apr | |
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,
java.net.SocketAddress remoteAddress) |
Constructor and Description |
---|
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
java.util.concurrent.Executor executor,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoAcceptor . |
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoAcceptor . |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
java.util.concurrent.Executor executor,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoConnector . |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
IoProcessor<T> processor)
Constructor for
AbstractPollingIoConnector . |
Constructor and Description |
---|
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
java.lang.Class<? extends IoProcessor<T>> processorClass)
Constructor for
AbstractPollingIoAcceptor . |
AbstractPollingIoAcceptor(IoSessionConfig sessionConfig,
java.lang.Class<? extends IoProcessor<T>> processorClass,
int processorCount)
Constructor for
AbstractPollingIoAcceptor . |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
java.lang.Class<? extends IoProcessor<T>> processorClass)
Constructor for
AbstractPollingIoConnector . |
AbstractPollingIoConnector(IoSessionConfig sessionConfig,
java.lang.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(java.lang.Class<? extends IoProcessor<T>> processorType) |
SimpleIoProcessorPool(java.lang.Class<? extends IoProcessor<T>> processorType,
java.util.concurrent.Executor executor) |
SimpleIoProcessorPool(java.lang.Class<? extends IoProcessor<T>> processorType,
java.util.concurrent.Executor executor,
int size) |
SimpleIoProcessorPool(java.lang.Class<? extends IoProcessor<T>> processorType,
int size) |
Modifier and Type | Method and Description |
---|---|
IoProcessor<AbstractIoSession> |
DummySession.getProcessor() |
abstract IoProcessor |
AbstractIoSession.getProcessor()
TODO Add method documentation
|
Modifier and Type | Class and Description |
---|---|
class |
AprIoProcessor
The class in charge of processing socket level IO events for the
AprSocketConnector |
Modifier and Type | Method and Description |
---|---|
IoProcessor<AprSession> |
AprSession.getProcessor()
TODO Add method documentation
|
Modifier and Type | Method and Description |
---|---|
protected AprSession |
AprSocketAcceptor.accept(IoProcessor<AprSession> processor,
java.lang.Long handle)
Accept a client connection for a server socket and return a new
IoSession
associated with the given IoProcessor |
protected AprSession |
AprSocketConnector.newSession(IoProcessor<AprSession> processor,
java.lang.Long handle)
Create a new
IoSession from a connected socket client handle. |
Constructor and Description |
---|
AprSocketAcceptor(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
Constructor for
AprSocketAcceptor with a given Executor for handling
connection events and a given AprIoProcessor for handling I/O events, useful for
sharing the same processor and executor over multiple IoService of the same type. |
AprSocketAcceptor(IoProcessor<AprSession> processor)
Constructor for
AprSocketAcceptor with default configuration but a
specific AprIoProcessor , useful for sharing the same processor over multiple
IoService of the same type. |
AprSocketConnector(java.util.concurrent.Executor executor,
IoProcessor<AprSession> processor)
Constructor for
AprSocketConnector 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. |
AprSocketConnector(IoProcessor<AprSession> processor)
Constructor for
AprSocketConnector with default configuration but a
specific IoProcessor , useful for sharing the same processor over multiple
IoService of the same type. |
Modifier and Type | Class and Description |
---|---|
class |
NioProcessor
TODO Add documentation
|
Modifier and Type | Method and Description |
---|---|
protected NioSession |
NioSocketAcceptor.accept(IoProcessor<NioSession> processor,
java.nio.channels.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,
java.nio.channels.DatagramChannel handle) |
protected NioSession |
NioDatagramAcceptor.newSession(IoProcessor<NioSession> processor,
java.nio.channels.DatagramChannel handle,
java.net.SocketAddress remoteAddress) |
protected NioSession |
NioSocketConnector.newSession(IoProcessor<NioSession> processor,
java.nio.channels.SocketChannel handle)
Create a new
IoSession from a connected socket client handle. |
Constructor and Description |
---|
NioDatagramConnector(IoProcessor<NioSession> processor)
Creates a new instance.
|
NioSocketAcceptor(java.util.concurrent.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(java.util.concurrent.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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-2019 Apache MINA Project. All Rights Reserved.