com.github.netty.protocol.nrpc.RpcClientAop Maven / Gradle / Ivy
The newest version!
package com.github.netty.protocol.nrpc;
import io.netty.util.concurrent.FastThreadLocal;
import java.util.Map;
import java.util.function.Supplier;
/**
* event aop
*
* @author wangzihao
*/
public interface RpcClientAop {
FastThreadLocal> CONTEXT_LOCAL = new FastThreadLocal<>();
default void onInitAfter(RpcClient rpcClient) {
}
default void onConnectAfter(RpcClient rpcClient) {
}
default void onDisconnectAfter(RpcClient rpcClient) {
}
default void onEncodeRequestBefore(RpcContext rpcContext, Map params) {
}
default void onTimeout(RpcContext rpcContext) {
}
default void onChunkAfter(RpcContext rpcContext, Supplier