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