OtaviaConfigBuilder

cc.otavia.core.config.OtaviaConfigBuilder
See theOtaviaConfigBuilder companion object

Builder for constructing OtaviaConfig instances.

Provides a fluent API for configuring the actor system. All setter methods return this for chaining.

Configuration values follow a priority chain: explicit builder value > system property (-D) > hardcoded default.

Example:

val config = OtaviaConfigBuilder()
  .name("my-system")
  .actorThreadPoolSize(4)
  .pageSize(8)
  .ioRatio(60)
  .withModuleConfig(SslConfig(cacheBufferSize = 32768))
  .build()

val system = ActorSystem(config)

For convenience, you can also use the callback style:

val system = ActorSystem("my-system") { builder =>
  builder.actorThreadPoolSize(4).ioRatio(60)
}

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def actorThreadPoolSize(value: Int): this.type
def ioRatio(value: Int): this.type
def name(value: String): this.type
def pageSize(kb: Int): this.type
def withModuleConfig[M <: ModuleConfig](config: M): this.type