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
- 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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 analyticsEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for analytics traffic.Sets the
EventLookGroupto be used for analytics traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def kvEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for key/value traffic.Sets the
EventLookGroupto be used for key/value traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.
- def managerEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for config traffic.Sets the
EventLookGroupto be used for config traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.
- def queryEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for query traffic.Sets the
EventLookGroupto be used for query traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.
- def searchEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for search traffic.Sets the
EventLookGroupto be used for search traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.
- def viewEventLoopGroup(value: EventLoopGroup): IoEnvironment
Sets the
EventLookGroupto be used for view traffic.Sets the
EventLookGroupto be used for view traffic.- returns
this, for chaining
- Annotations
- @deprecated
- Deprecated
(Since version 3.13.0) This method may be removed in a future version of the SDK. Netty classes might not always be part of the SDK's public API, and a future version might use a different I/O engine. There is no direct replacement. To change how many threads the SDK uses for I/O, please use
eventLoopThreadCountinstead.