ReactorConfig

cc.otavia.core.config.ReactorConfig
case class ReactorConfig(maxTasksPerRun: Int = ..., nioWorkerSize: Int = ..., selectorAutoRebuildThreshold: Int = ..., noKeySetOptimization: Boolean = ...)

NIO reactor configuration.

Value parameters

maxTasksPerRun

Maximum number of IO tasks processed per reactor loop iteration. Controls responsiveness vs throughput tradeoff. Default is 16.

nioWorkerSize

Number of NIO reactor worker threads. Defaults to available processors. These threads handle selector polling and channel IO events.

noKeySetOptimization

Disable the SelectedSelectionKeySet optimization that replaces the selector's internal key set with a more efficient implementation. May be needed on certain JVMs or for debugging. Default is false.

selectorAutoRebuildThreshold

Number of consecutive premature Selector returns before rebuilding the Selector to work around the epoll 100% CPU bug. Set to 0 to disable auto-rebuild. Default is 512.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product