Enum Class ChannelUtils
- All Implemented Interfaces:
Serializable,Comparable<ChannelUtils>,Constable
Various netty channel related utility methods.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<? extends com.couchbase.client.core.deps.io.netty.channel.Channel>channelForEventLoopGroup(com.couchbase.client.core.deps.io.netty.channel.EventLoopGroup group) Helper method to detect the right channel for the given event loop group.static ChannelUtilsReturns the enum constant of this class with the specified name.static ChannelUtils[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
channelForEventLoopGroup
public static Class<? extends com.couchbase.client.core.deps.io.netty.channel.Channel> channelForEventLoopGroup(com.couchbase.client.core.deps.io.netty.channel.EventLoopGroup group) Helper method to detect the right channel for the given event loop group.Supports Epoll, KQueue, Nio and Oio.
- Parameters:
group- the event loop group passed in.- Returns:
- returns the right channel class for the group.
-