@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.ChannelInboundHandlerAdapter
Exception
public void channelUnregistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelUnregistered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelWritabilityChanged
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void bind(io.netty.channel.ChannelHandlerContext ctx, SocketAddress localAddress, io.netty.channel.ChannelPromise promise) throws Exception
bind
in class io.netty.channel.ChannelDuplexHandler
Exception
public void connect(io.netty.channel.ChannelHandlerContext ctx, SocketAddress remote, SocketAddress local, io.netty.channel.ChannelPromise p) throws Exception
connect
in class io.netty.channel.ChannelDuplexHandler
Exception
public void disconnect(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
disconnect
in class io.netty.channel.ChannelDuplexHandler
Exception
public void close(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
close
in class io.netty.channel.ChannelDuplexHandler
Exception
public void deregister(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise) throws Exception
deregister
in class io.netty.channel.ChannelDuplexHandler
Exception
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
write
in class io.netty.channel.ChannelDuplexHandler
Exception
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.