| 程序包 | 说明 |
|---|---|
| org.apache.mina.handler.demux |
A handler implementation that helps you implement complex protocols
by splitting messageReceived handlers into multiple sub-handlers.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static ExceptionHandler<java.lang.Throwable> |
ExceptionHandler.CLOSE
A
ExceptionHandler that closes the session immediately. |
static ExceptionHandler<java.lang.Throwable> |
ExceptionHandler.NOOP
A
ExceptionHandler that does nothing. |
| 限定符和类型 | 方法和说明 |
|---|---|
<E extends java.lang.Throwable> |
DemuxingIoHandler.addExceptionHandler(java.lang.Class<E> type,
ExceptionHandler<? super E> handler)
Registers a
MessageHandler that receives the messages of
the specified type. |
protected ExceptionHandler<java.lang.Throwable> |
DemuxingIoHandler.findExceptionHandler(java.lang.Class<? extends java.lang.Throwable> type) |
<E extends java.lang.Throwable> |
DemuxingIoHandler.removeExceptionHandler(java.lang.Class<E> type)
Deregisters a
MessageHandler that receives the messages of
the specified type. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.Class<?>,ExceptionHandler<?>> |
DemuxingIoHandler.getExceptionHandlerMap() |
| 限定符和类型 | 方法和说明 |
|---|---|
<E extends java.lang.Throwable> |
DemuxingIoHandler.addExceptionHandler(java.lang.Class<E> type,
ExceptionHandler<? super E> handler)
Registers a
MessageHandler that receives the messages of
the specified type. |