public class UnusedChannelExceptionHandler
extends io.netty.channel.ChannelHandlerAdapter
ChannelAttributeKey.IN_USE). This
does nothing if the channel is currently in use. If it's not currently in use, it will close the channel and log an
appropriate notification.
This prevents spamming customer logs when errors (eg. connection resets) occur on an unused channel.| Constructor and Description |
|---|
UnusedChannelExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterCopyright © 2019. All rights reserved.