public final class ChannelUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<Void> |
close(Iterable<? extends io.netty.channel.Channel> channels) |
static void |
disableWriterBufferWatermark(io.netty.channel.Channel channel)
Disables the write buffer water mark of the specified
Channel, because we do not use this
feature at all and thus we do not want channelWritabilityChanged events triggered often. |
static Class<? extends io.netty.channel.EventLoopGroup> |
epollEventLoopClass() |
static SSLSession |
findSslSession(io.netty.channel.Channel channel)
Finds the
SSLSession of the current TLS connection. |
static SSLSession |
findSslSession(io.netty.channel.Channel channel,
SessionProtocol sessionProtocol)
Finds the
SSLSession of the current TLS connection. |
public static Class<? extends io.netty.channel.EventLoopGroup> epollEventLoopClass()
public static CompletableFuture<Void> close(Iterable<? extends io.netty.channel.Channel> channels)
public static void disableWriterBufferWatermark(io.netty.channel.Channel channel)
Channel, because we do not use this
feature at all and thus we do not want channelWritabilityChanged events triggered often.public static SSLSession findSslSession(io.netty.channel.Channel channel, SessionProtocol sessionProtocol)
SSLSession of the current TLS connection.SSLSession if found, or null if SessionProtocol is not TLS,
the SSLSession is not found or Channel is null.public static SSLSession findSslSession(io.netty.channel.Channel channel)
SSLSession of the current TLS connection.SSLSession if found, or null if not found or Channel is null.Copyright © 2020 LeanCloud. All rights reserved.