Class EventLoopGroupAndType

java.lang.Object
com.couchbase.client.core.io.netty.EventLoopGroupAndType

@Internal @NullMarked public class EventLoopGroupAndType extends Object
Inspecting the event loop group type on every use can cause uneven distribution of channels to event loops, because IoEventLoopGroup.isIoType(Class) increments the counter that points to the "next" loop (see JVMCBC-1740). To avoid that trap, this class inspects the group just once and caches the type.
  • Method Details

    • from

      public static EventLoopGroupAndType from(com.couchbase.client.core.deps.io.netty.channel.IoEventLoopGroup group)
    • group

      public com.couchbase.client.core.deps.io.netty.channel.IoEventLoopGroup group()
    • newBootstrap

      public com.couchbase.client.core.deps.io.netty.bootstrap.Bootstrap newBootstrap()
    • isLocal

      public boolean isLocal()
    • isEpoll

      public boolean isEpoll()
    • isKqueue

      public boolean isKqueue()
    • isNio

      public boolean isNio()
    • toString

      public String toString()
      Overrides:
      toString in class Object