程序包 | 说明 |
---|---|
org.apache.mina.core.future | |
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.proxy | |
org.apache.mina.proxy.session | |
org.apache.mina.transport.serial | |
org.apache.mina.transport.vmpipe |
In-VM pipe support which removes the overhead of local loopback communication.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultConnectFuture
A default implementation of
ConnectFuture . |
限定符和类型 | 方法和说明 |
---|---|
ConnectFuture |
DefaultConnectFuture.addListener(IoFutureListener<?> listener)
Adds an event listener which is notified when
this future is completed.
|
ConnectFuture |
ConnectFuture.addListener(IoFutureListener<?> listener)
Adds an event listener which is notified when
this future is completed.
|
ConnectFuture |
DefaultConnectFuture.await()
Wait for the asynchronous operation to complete.
|
ConnectFuture |
ConnectFuture.await()
Wait for the asynchronous operation to complete.
|
ConnectFuture |
DefaultConnectFuture.awaitUninterruptibly()
Wait for the asynchronous operation to complete uninterruptibly.
|
ConnectFuture |
ConnectFuture.awaitUninterruptibly()
Wait for the asynchronous operation to complete uninterruptibly.
|
static ConnectFuture |
DefaultConnectFuture.newFailedFuture(java.lang.Throwable exception)
Creates a new instance of a Connection Failure, with the associated cause.
|
ConnectFuture |
DefaultConnectFuture.removeListener(IoFutureListener<?> listener)
Removes an existing event listener so it won't be notified when
the future is completed.
|
ConnectFuture |
ConnectFuture.removeListener(IoFutureListener<?> listener)
Removes an existing event listener so it won't be notified when
the future is completed.
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractPollingIoConnector.ConnectionRequest |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
AbstractPollingIoConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
限定符和类型 | 方法和说明 |
---|---|
IoSessionInitializer<? extends ConnectFuture> |
AbstractPollingIoConnector.ConnectionRequest.getSessionInitializer() |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
AbstractPollingIoConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
构造器和说明 |
---|
AbstractPollingIoConnector.ConnectionRequest(H handle,
IoSessionInitializer<? extends ConnectFuture> callback) |
限定符和类型 | 方法和说明 |
---|---|
ConnectFuture |
IoConnector.connect()
Connects to the
default
remote address . |
ConnectFuture |
AbstractIoConnector.connect()
Connects to the
default
remote address . |
ConnectFuture |
IoConnector.connect(IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the
default
remote address and invokes the ioSessionInitializer when
the IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
AbstractIoConnector.connect(IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the
default
remote address and invokes the ioSessionInitializer when
the IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress)
Connects to the specified remote address.
|
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress)
Connects to the specified remote address.
|
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address and invokes
the
ioSessionInitializer when the IoSession is created but before
IoHandler.sessionCreated(IoSession) is invoked. |
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address and invokes
the
ioSessionInitializer when the IoSession is created but before
IoHandler.sessionCreated(IoSession) is invoked. |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress)
Connects to the specified remote address binding to the specified local address.
|
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address binding to the specified local
address and and invokes the
ioSessionInitializer when the
IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address binding to the specified local
address and and invokes the
ioSessionInitializer when the
IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
protected abstract ConnectFuture |
AbstractIoConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
限定符和类型 | 方法和说明 |
---|---|
ConnectFuture |
IoConnector.connect(IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the
default
remote address and invokes the ioSessionInitializer when
the IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
AbstractIoConnector.connect(IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the
default
remote address and invokes the ioSessionInitializer when
the IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address and invokes
the
ioSessionInitializer when the IoSession is created but before
IoHandler.sessionCreated(IoSession) is invoked. |
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address and invokes
the
ioSessionInitializer when the IoSession is created but before
IoHandler.sessionCreated(IoSession) is invoked. |
ConnectFuture |
IoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address binding to the specified local
address and and invokes the
ioSessionInitializer when the
IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
ConnectFuture |
AbstractIoConnector.connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified remote address binding to the specified local
address and and invokes the
ioSessionInitializer when the
IoSession is created but before IoHandler.sessionCreated(IoSession)
is invoked. |
protected abstract ConnectFuture |
AbstractIoConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
ProxyConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified
address . |
protected ConnectFuture |
ProxyConnector.fireConnected(IoSession session)
Fires the connection event on the real future to notify the client.
|
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
ProxyConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Connects to the specified
address . |
限定符和类型 | 类和说明 |
---|---|
class |
ProxyIoSessionInitializer<T extends ConnectFuture>
ProxyIoSessionInitializer.java -
IoSessionInitializer wrapper class to inject the
ProxyIoSession object that contains all the attributes of the target connection
into the IoSession . |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
SerialConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer) |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
SerialConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer) |
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
VmPipeConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|
限定符和类型 | 方法和说明 |
---|---|
protected ConnectFuture |
VmPipeConnector.connect0(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
IoSessionInitializer<? extends ConnectFuture> sessionInitializer)
Implement this method to perform the actual connect operation.
|