SnapshotOptions

class SnapshotOptions @InternalWowApi constructor(val interval: Duration = DEFAULT_INTERVAL, val batch: Int = DEFAULT_BATCH, val pages: Int = DEFAULT_PAGES, val leaseTtl: Duration = DEFAULT_TTL, val memberTtl: Duration = DEFAULT_TTL, val writeBatch: Int = DEFAULT_WRITE_BATCH)

The tuning of each context's SnapshotMaintenance: it runs every interval; an in-place rebuild rewrites batch snapshots a page, at most pages pages a run, under a lease of leaseTtl; a node stays a member of its state revision for memberTtl after its last run, so a rollback waits that long after the last node of the higher revision is gone (none when it leaves gracefully). The snapshot subscriptions write at most writeBatch snapshots of a partition with one me.ahoo.wow.spi.snapshot.SnapshotStore.saveAll.

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(interval: Duration = DEFAULT_INTERVAL, batch: Int = DEFAULT_BATCH, pages: Int = DEFAULT_PAGES, leaseTtl: Duration = DEFAULT_TTL, memberTtl: Duration = DEFAULT_TTL, writeBatch: Int = DEFAULT_WRITE_BATCH)

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
val pages: Int
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