cc.otavia.core.config.OtaviaConfigBuilder
See theOtaviaConfigBuilder companion object
class OtaviaConfigBuilder
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 Objecttrait Matchableclass Any
Members list
In this article