Class EventLoopGroupAndType
java.lang.Object
com.couchbase.client.core.io.netty.EventLoopGroupAndType
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 Summary
Modifier and TypeMethodDescriptionstatic EventLoopGroupAndTypefrom(com.couchbase.client.core.deps.io.netty.channel.IoEventLoopGroup group) com.couchbase.client.core.deps.io.netty.channel.IoEventLoopGroupgroup()booleanisEpoll()booleanisKqueue()booleanisLocal()booleanisNio()com.couchbase.client.core.deps.io.netty.bootstrap.BootstraptoString()
-
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
-