程序包 | 说明 |
---|---|
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.example.echoserver |
Echo server which demonstates low-level I/O layer and SSL support.
|
org.apache.mina.example.httpserver.codec |
A HTTP server implemented with protocol codec (needs more work).
|
org.apache.mina.example.netcat |
NetCat client (Network + Unix
cat command) which demonstates low-level I/O layer. |
org.apache.mina.example.sumup |
SumUp Server and Client which sums up all ADD requests.
|
org.apache.mina.filter |
Useful IoFilter implementations.
|
org.apache.mina.filter.executor |
An IoFilter that provides flexible thread models
|
org.apache.mina.handler |
Useful IoHandler implementations.
|
org.apache.mina.handler.multiton |
Enables creating a handler per session instead of having one handler for many
sessions, using
Multiton pattern.
|
org.apache.mina.transport.vmpipe.support |
Internal classes used by org.apache.mina.transport.vmpipe package.
|
限定符和类型 | 字段和说明 |
---|---|
static IdleStatus |
IdleStatus.BOTH_IDLE
Represents both
READER_IDLE and WRITER_IDLE . |
static IdleStatus |
IdleStatus.READER_IDLE
Represents the session status that no data is coming from the remote
peer.
|
static IdleStatus |
IdleStatus.WRITER_IDLE
Represents the session status that the session is not writing any data.
|
限定符和类型 | 方法和说明 |
---|---|
void |
IoFilterChain.fireSessionIdle(IoSession session,
IdleStatus status)
Fires a
IoHandler.sessionIdle(IoSession, IdleStatus) event. |
int |
IoSession.getIdleCount(IdleStatus status)
Returns the number of the fired continuous sessionIdle events
for the specified
IdleStatus . |
int |
IoSession.getIdleTime(IdleStatus status)
Returns idle time for the specified type of idleness in seconds.
|
long |
IoSession.getIdleTimeInMillis(IdleStatus status)
Returns idle time for the specified type of idleness in milliseconds.
|
long |
IoSession.getLastIdleTime(IdleStatus status)
Returns the time in millis when the last sessionIdle event
is fired for the specified
IdleStatus . |
boolean |
IoSession.isIdle(IdleStatus status)
Returns
true if this session is idle for the specified
IdleStatus . |
void |
IoFilterAdapter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status) |
void |
IoFilter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status)
Filters
IoHandler.sessionIdle(IoSession,IdleStatus)
event. |
void |
IoHandlerAdapter.sessionIdle(IoSession session,
IdleStatus status) |
void |
IoHandler.sessionIdle(IoSession session,
IdleStatus status)
Invoked with the related
IdleStatus when a connection becomes idle. |
void |
IoFilter.NextFilter.sessionIdle(IoSession session,
IdleStatus status)
Forwards sessionIdle event to next filter.
|
void |
IoSession.setIdleTime(IdleStatus status,
int idleTime)
Sets idle time for the specified type of idleness in seconds.
|
限定符和类型 | 方法和说明 |
---|---|
void |
AbstractIoFilterChain.fireSessionIdle(IoSession session,
IdleStatus status) |
int |
BaseIoSession.getIdleCount(IdleStatus status) |
int |
BaseIoSession.getIdleTime(IdleStatus status) |
long |
BaseIoSession.getIdleTimeInMillis(IdleStatus status) |
long |
BaseIoSession.getLastIdleTime(IdleStatus status) |
void |
BaseIoSession.increaseIdleCount(IdleStatus status) |
boolean |
BaseIoSession.isIdle(IdleStatus status) |
void |
BaseIoSession.setIdleTime(IdleStatus status,
int idleTime) |
限定符和类型 | 方法和说明 |
---|---|
void |
EchoProtocolHandler.sessionIdle(IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
ServerHandler.sessionIdle(IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
NetCatProtocolHandler.sessionIdle(IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
ServerSessionHandler.sessionIdle(IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
ReferenceCountingIoFilter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status) |
void |
LoggingFilter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status) |
void |
BlacklistFilter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
ExecutorFilter.sessionIdle(IoFilter.NextFilter nextFilter,
IoSession session,
IdleStatus status) |
限定符和类型 | 方法和说明 |
---|---|
void |
StreamIoHandler.sessionIdle(IoSession session,
IdleStatus status)
Handles read timeout.
|
限定符和类型 | 方法和说明 |
---|---|
void |
SingleSessionIoHandlerAdapter.sessionIdle(IdleStatus status) |
void |
SingleSessionIoHandler.sessionIdle(IdleStatus status)
Invoked when the connection is idle.
|
void |
SingleSessionIoHandlerDelegate.sessionIdle(IoSession session,
IdleStatus status)
Delegates the method call to the
SingleSessionIoHandler.sessionIdle(IdleStatus) method of the
handler assigned to this session. |
限定符和类型 | 方法和说明 |
---|---|
void |
VmPipeFilterChain.fireSessionIdle(IoSession session,
IdleStatus status) |