程序包 | 说明 |
---|---|
org.apache.mina.common |
Common types required for users to use MINA.
|
org.apache.mina.common.support |
Internal classes used by org.apache.mina.common package.
|
org.apache.mina.integration.spring |
SpringFramework-specific classes
for integration
|
org.apache.mina.transport.socket.nio |
Socket (TCP/IP) and Datagram (UDP/IP) support based on Java
NIO (New I/O) API.
|
org.apache.mina.transport.socket.nio.support |
Internal classes used by org.apache.mina.transport.socket.nio package.
|
org.apache.mina.transport.vmpipe |
In-VM pipe support which removes the overhead of local loopback communication.
|
org.apache.mina.transport.vmpipe.support |
Internal classes used by org.apache.mina.transport.vmpipe package.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
IoAcceptorConfig
A configuration which is used to configure
IoAcceptor . |
interface |
IoConnectorConfig
A configuration which is used to configure
IoConnector . |
限定符和类型 | 方法和说明 |
---|---|
IoServiceConfig |
IoService.getDefaultConfig()
Returns the default configuration which is used when you didn't specify
any configuration.
|
IoServiceConfig |
IoSession.getServiceConfig()
Returns the
IoServiceConfig of this session. |
限定符和类型 | 方法和说明 |
---|---|
void |
IoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Binds to the specified
address and handles incoming
connections with the specified handler . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address . |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config)
Connects to the specified
address . |
void |
IoServiceListener.serviceActivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a new service is activated by an
IoService . |
void |
IoServiceListener.serviceDeactivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Invoked when a service is deactivated by an
IoService . |
限定符和类型 | 类和说明 |
---|---|
class |
BaseIoAcceptorConfig
A base implementation of
IoAcceptorConfig . |
class |
BaseIoConnectorConfig
A base implementation of
IoConnectorConfig . |
class |
BaseIoServiceConfig
A base implementation of
IoServiceConfig . |
限定符和类型 | 方法和说明 |
---|---|
IoServiceConfig |
DelegatedIoConnector.getDefaultConfig() |
IoServiceConfig |
DelegatedIoAcceptor.getDefaultConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
DelegatedIoAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DelegatedIoConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
void |
IoServiceListenerSupport.fireServiceActivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Calls
IoServiceListener.serviceActivated(IoService, SocketAddress, IoHandler, IoServiceConfig)
for all registered listeners. |
void |
IoServiceListenerSupport.fireServiceDeactivated(IoService service,
java.net.SocketAddress serviceAddress,
IoHandler handler,
IoServiceConfig config)
Calls
IoServiceListener.serviceDeactivated(IoService, SocketAddress, IoHandler, IoServiceConfig)
for all registered listeners. |
限定符和类型 | 方法和说明 |
---|---|
IoServiceConfig |
Binding.getServiceConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
Binding.setServiceConfig(IoServiceConfig serviceConfig) |
构造器和说明 |
---|
Binding(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig serviceConfig)
Creates a new instance using the specified values.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
DatagramServiceConfig
|
限定符和类型 | 类和说明 |
---|---|
class |
DatagramAcceptorConfig
An
IoAcceptorConfig for DatagramAcceptor . |
class |
DatagramConnectorConfig
An
IoConnectorConfig for DatagramConnector . |
class |
SocketAcceptorConfig
An
IoAcceptorConfig for SocketAcceptor . |
class |
SocketConnectorConfig
An
IoConnectorConfig for SocketConnector . |
限定符和类型 | 方法和说明 |
---|---|
void |
SocketAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config)
Binds to the specified
address and handles incoming connections with the specified
handler . |
ConnectFuture |
SocketConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
SocketConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
void |
DatagramAcceptorDelegate.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DatagramConnectorDelegate.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
DatagramConnectorDelegate.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
IoServiceConfig |
VmPipeConnector.getDefaultConfig() |
IoServiceConfig |
VmPipeAcceptor.getDefaultConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
VmPipeAcceptor.bind(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
VmPipeConnector.connect(java.net.SocketAddress address,
IoHandler handler,
IoServiceConfig config) |
ConnectFuture |
VmPipeConnector.connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler,
IoServiceConfig config) |
限定符和类型 | 方法和说明 |
---|---|
IoServiceConfig |
VmPipe.getConfig() |
IoServiceConfig |
VmPipeSessionImpl.getServiceConfig() |
构造器和说明 |
---|
VmPipe(VmPipeAcceptor acceptor,
VmPipeAddress address,
IoHandler handler,
IoServiceConfig config,
IoServiceListenerSupport listeners) |
VmPipeSessionImpl(IoService service,
IoServiceConfig serviceConfig,
IoServiceListenerSupport serviceListeners,
java.net.SocketAddress localAddress,
IoHandler handler,
VmPipe remoteEntry) |