StateCacheOptions

class StateCacheOptions @InternalWowApi constructor(val capacity: Int? = null, val recentRequests: Int = Kernel.DEFAULT_RECENT_REQUESTS)

What each context's state cache keeps between commands.

  • capacity: the aggregate states kept per context; 0 keeps none, null (the default) sizes each context's cache from the heap (StateCacheSizing).

  • recentRequests: the requests each cached aggregate keeps of those it committed last, derived from the log, so that most commands skip looking their request id up; 0 looks every request id up.

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? = null, recentRequests: Int = Kernel.DEFAULT_RECENT_REQUESTS)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copyWith(capacity: Int? = this.capacity, recentRequests: Int = this.recentRequests): StateCacheOptions

This StateCacheOptions with the given fields replaced: Wow's own copy, left out of the ABI.

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