Class SslCloseCompletionEventHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
software.amazon.awssdk.http.nio.netty.internal.SslCloseCompletionEventHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable
public final class SslCloseCompletionEventHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Handles
SslCloseCompletionEvent
s that are sent whenever an SSL channel
goes inactive. This most commonly occurs on a tls_close sent by the server. Channels
in this state can't be reused so they must be closed.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
userEventTriggered
(io.netty.channel.ChannelHandlerContext ctx, Object evt) Close the channel if the event isSslCloseCompletionEvent
and the channel is unused.Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Method Details
-
userEventTriggered
Close the channel if the event isSslCloseCompletionEvent
and the channel is unused. If the channel is being used, it will be closed inResponseHandler
- Specified by:
userEventTriggered
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in classio.netty.channel.ChannelInboundHandlerAdapter
-
getInstance
-