public final class TrafficLoggingHandler
extends io.netty.handler.logging.LoggingHandler
| Modifier and Type | Field and Description |
|---|---|
static TrafficLoggingHandler |
CLIENT |
static TrafficLoggingHandler |
SERVER |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
flush(io.netty.channel.ChannelHandlerContext ctx) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, format, format, format, level, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final TrafficLoggingHandler SERVER
public static final TrafficLoggingHandler CLIENT
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.handler.logging.LoggingHandlerExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in interface io.netty.channel.ChannelInboundHandlerchannelUnregistered in class io.netty.handler.logging.LoggingHandlerExceptionpublic void flush(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
flush in interface io.netty.channel.ChannelOutboundHandlerflush in class io.netty.handler.logging.LoggingHandlerExceptionCopyright © 2020 LeanCloud. All rights reserved.