public interface Plugin<T> extends NetMonitor<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
preProcess(AioSession<T> session,
T t)
对请求消息进行预处理,并决策是否进行后续的MessageProcessor处理
若返回false,则当前消息将被忽略
若返回true,该消息会正常秩序MessageProcessor.process.
|
void |
stateEvent(StateMachine stateMachine,
AioSession<T> session,
Throwable throwable) |
acceptMonitor, readMonitor, writeMonitorboolean preProcess(AioSession<T> session, T t)
session - 会话t - 对象void stateEvent(StateMachine stateMachine, AioSession<T> session, Throwable throwable)
stateMachine - 状态session - 会话throwable - 线程Copyright © 2019. All rights reserved.