case class IoEnvironment(managerEventLoopGroup: Option[EventLoopGroup] = None, kvEventLoopGroup: Option[EventLoopGroup] = None, queryEventLoopGroup: Option[EventLoopGroup] = None, analyticsEventLoopGroup: Option[EventLoopGroup] = None, searchEventLoopGroup: Option[EventLoopGroup] = None, viewEventLoopGroup: Option[EventLoopGroup] = None, nativeIoEnabled: Option[Boolean] = None, eventLoopThreadCount: Option[Int] = None) extends Product with Serializable
Holds all IO-related configuration and state.
- Since
1.0.0
- Alphabetic
- By Inheritance
- IoEnvironment
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IoEnvironment(managerEventLoopGroup: Option[EventLoopGroup] = None, kvEventLoopGroup: Option[EventLoopGroup] = None, queryEventLoopGroup: Option[EventLoopGroup] = None, analyticsEventLoopGroup: Option[EventLoopGroup] = None, searchEventLoopGroup: Option[EventLoopGroup] = None, viewEventLoopGroup: Option[EventLoopGroup] = None, nativeIoEnabled: Option[Boolean] = None, eventLoopThreadCount: Option[Int] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def analyticsEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for analytics traffic.Sets the
EventLookGroup
to be used for analytics traffic.- returns
this, for chaining
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def enableNativeIo(nativeIoEnabled: Boolean): IoEnvironment
If set to false (enabled by default) will force using the JVM NIO based IO transport.
If set to false (enabled by default) will force using the JVM NIO based IO transport.
Usually the native transports used (epoll on linux and kqueue on OSX) are going to be faster and more efficient than the generic NIO one. We recommend to only set this to false if you experience issues with the native transports or instructed by couchbase support to do so for troubleshooting reasons.
- nativeIoEnabled
if native IO should be enabled or disabled.
- returns
this, for chaining
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eventLoopThreadCount(eventLoopThreadCount: Int): IoEnvironment
Overrides the number of threads used per event loop.
Overrides the number of threads used per event loop.
If not manually overridden, a fair thread count is calculated.
Note that the count provided will only be used by event loops that the SDK creates. If you configure a custom event loop (i.e. through .kvEventLoopGroup you are responsible for sizing it appropriately on your own.
- eventLoopThreadCount
the number of event loops to use per pool.
- returns
this, for chaining
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kvEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for key/value traffic.Sets the
EventLookGroup
to be used for key/value traffic.- returns
this, for chaining
- def managerEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for config traffic.Sets the
EventLookGroup
to be used for config traffic.- returns
this, for chaining
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def queryEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for query traffic.Sets the
EventLookGroup
to be used for query traffic.- returns
this, for chaining
- def searchEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for search traffic.Sets the
EventLookGroup
to be used for search traffic.- returns
this, for chaining
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def viewEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroup
to be used for view traffic.Sets the
EventLookGroup
to be used for view traffic.- returns
this, for chaining
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)