AccessStampOptions

class AccessStampOptions @InternalWowApi constructor(val batch: Int = DEFAULT_BATCH, val capacity: Int = DEFAULT_CAPACITY, val walkBatch: Int = DEFAULT_WALK_BATCH, val walkRate: Int = DEFAULT_WALK_RATE, val walkShare: Double = DEFAULT_WALK_SHARE, val interval: Duration = DEFAULT_INTERVAL, val leaseTtl: Duration = DEFAULT_TTL, val memberTtl: Duration = DEFAULT_TTL)

How a context stamps the histories (AccessStamping, AccessWalking): at most batch streams in one stamp, so one long history is written in statements of a bounded size, each by the version key; the last stamped attributes of at most capacity aggregates, which spare the follower a read of the previous stream; and the walks, walkBatch aggregates a page at most, at most walkRate a second and at most walkShare of the time, run every interval under a lease of leaseTtl, each node a member of its access schema of each type for memberTtl after its last run. The host configures them (wow.access.*).

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(batch: Int = DEFAULT_BATCH, capacity: Int = DEFAULT_CAPACITY, walkBatch: Int = DEFAULT_WALK_BATCH, walkRate: Int = DEFAULT_WALK_RATE, walkShare: Double = DEFAULT_WALK_SHARE, interval: Duration = DEFAULT_INTERVAL, leaseTtl: Duration = DEFAULT_TTL, memberTtl: Duration = DEFAULT_TTL)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val batch: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The most of the time a walk takes, as a share of one connection of the log store's: after an aggregate whose stamping took t, the walk waits t * (1 - walkShare) / walkShare. While the store's writes are pressed it halves, down to an eighth of it, and comes back once they are not.

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