public class HandshakeTimeoutHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
ConnectInterceptingHandler to fail the connection
if the handshake takes too long.| Constructor and Description |
|---|
HandshakeTimeoutHandler(long timeout,
TimeUnit timeoutUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise) |
bind, close, deregister, disconnect, flush, read, writeensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic HandshakeTimeoutHandler(long timeout,
TimeUnit timeoutUnit)
public void connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise)
throws Exception
connect in interface io.netty.channel.ChannelOutboundHandlerconnect in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionCopyright © 2021 Couchbase, Inc.. All rights reserved.