@Sharable
public final class LoggingHandler
extends io.netty.channel.ChannelDuplexHandler
| Constructor | Description |
|---|---|
LoggingHandler(Consumer<Supplier<String>> logger) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise) |
|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
|
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
|
void |
connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remote,
SocketAddress local,
io.netty.channel.ChannelPromise p) |
|
void |
deregister(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
|
void |
disconnect(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
|
void |
flush(io.netty.channel.ChannelHandlerContext ctx) |
|
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
|
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelUnregistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void bind(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise)
throws Exception
bind in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remote,
SocketAddress local,
io.netty.channel.ChannelPromise p)
throws Exception
connect in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void disconnect(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws Exception
disconnect in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws Exception
close in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void deregister(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws Exception
deregister in class io.netty.channel.ChannelDuplexHandlerExceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in class io.netty.channel.ChannelDuplexHandlerExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.