public final class DefaultErrorLogHandler extends ChannelDuplexHandler
ChannelHandler.Sharable
Constructor and Description |
---|
DefaultErrorLogHandler(Function<ErrorLogArgProvider,ErrorLog> errorLog) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause) |
void |
userEventTriggered(ChannelHandlerContext ctx,
Object evt) |
bind, close, connect, deregister, disconnect, flush, read, write
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public DefaultErrorLogHandler(@Nullable Function<ErrorLogArgProvider,ErrorLog> errorLog)
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface ChannelHandler
exceptionCaught
in interface ChannelInboundHandler
exceptionCaught
in class ChannelInboundHandlerAdapter
public void userEventTriggered(ChannelHandlerContext ctx, Object evt)
userEventTriggered
in interface ChannelInboundHandler
userEventTriggered
in class ChannelInboundHandlerAdapter