类 NettyResponseEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<com.alibaba.csp.sentinel.cluster.response.ClusterResponse>
com.alibaba.csp.sentinel.cluster.server.codec.netty.NettyResponseEncoder
- 所有已实现的接口:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
public class NettyResponseEncoder
extends io.netty.handler.codec.MessageToByteEncoder<com.alibaba.csp.sentinel.cluster.response.ClusterResponse>
- 从以下版本开始:
- 1.4.0
- 作者:
- Eric Zhao
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidencode(io.netty.channel.ChannelHandlerContext ctx, com.alibaba.csp.sentinel.cluster.response.ClusterResponse response, io.netty.buffer.ByteBuf out) 从类继承的方法 io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, write从类继承的方法 io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
构造器详细资料
-
NettyResponseEncoder
public NettyResponseEncoder()
-
-
方法详细资料
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, com.alibaba.csp.sentinel.cluster.response.ClusterResponse response, io.netty.buffer.ByteBuf out) throws Exception - 指定者:
encode在类中io.netty.handler.codec.MessageToByteEncoder<com.alibaba.csp.sentinel.cluster.response.ClusterResponse>- 抛出:
Exception
-