Class Channels
- java.lang.Object
-
- org.asynchttpclient.netty.channel.Channels
-
public final class Channels extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetAttribute(io.netty.channel.Channel channel)static booleanisActiveTokenSet(io.netty.channel.Channel channel)static booleanisChannelActive(io.netty.channel.Channel channel)static voidreleasePermit(io.netty.channel.Channel channel)Releases the connection permit this channel holds, if any.static voidsetActiveToken(io.netty.channel.Channel channel)static voidsetAttribute(io.netty.channel.Channel channel, Object o)static voidsetDiscard(io.netty.channel.Channel channel)static voidsilentlyCloseChannel(io.netty.channel.Channel channel)
-
-
-
Method Detail
-
getAttribute
public static Object getAttribute(io.netty.channel.Channel channel)
-
setAttribute
public static void setAttribute(io.netty.channel.Channel channel, Object o)
-
setDiscard
public static void setDiscard(io.netty.channel.Channel channel)
-
isChannelActive
public static boolean isChannelActive(io.netty.channel.Channel channel)
-
setActiveToken
public static void setActiveToken(io.netty.channel.Channel channel)
-
isActiveTokenSet
public static boolean isActiveTokenSet(io.netty.channel.Channel channel)
-
releasePermit
public static void releasePermit(io.netty.channel.Channel channel)
Releases the connection permit this channel holds, if any. Safe to call more than once; the close listener remains the backstop.
-
silentlyCloseChannel
public static void silentlyCloseChannel(io.netty.channel.Channel channel)
-
-