public interface Plugin<T> extends NetMonitor
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
preProcess(AioSession session,
T t)
对请求消息进行预处理,并决策是否进行后续的MessageProcessor处理。
|
void |
stateEvent(StateMachineEnum stateMachineEnum,
AioSession session,
Throwable throwable)
监听状态机事件
|
afterRead, afterWrite, beforeRead, beforeWrite, shouldAcceptboolean preProcess(AioSession session, T t)
session - t - void stateEvent(StateMachineEnum stateMachineEnum, AioSession session, Throwable throwable)
stateMachineEnum - session - throwable - MessageProcessor.stateEvent(AioSession, StateMachineEnum, Throwable)Copyright © 2024. All rights reserved.