SharedStateOptions

class SharedStateOptions @InternalWowApi constructor(val capacity: Int = DEFAULT_CAPACITY, val maxAge: Duration = DEFAULT_MAX_AGE, val maxBytes: Long = DEFAULT_MAX_BYTES)

The bounds of a context's SharedStates: at most capacity views, holding at most maxBytes of serialized state (a few aggregates with states of hundreds of kilobytes would otherwise take gigabytes within the count), none older than maxAge. The host configures them (wow.shared-states.*).

Fields may be added: Wow builds it from the host's configuration, so the constructor is internal to Wow.

Constructors

Link copied to clipboard
constructor(capacity: Int = DEFAULT_CAPACITY, maxAge: Duration = DEFAULT_MAX_AGE, maxBytes: Long = DEFAULT_MAX_BYTES)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String