WalkStore

sealed interface WalkStore : AutoCloseable

The account's log and its walk record, read and written with the store's own driver, as an operator reads the registry (Rebuild and Replay, "Watching it"): the log collection or table wow_log__transfer__account, the registry wow_log_aggregate.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Mongo(uri: String, database: String) : WalkStore
Link copied to clipboard
class Postgres(url: String, user: String?, password: String?) : WalkStore

Functions

Link copied to clipboard
abstract fun inWalkOrder(count: Int, last: Boolean): List<String>

The ids of the first count accounts in the walk's order, or the last ones: those it reaches last.

Link copied to clipboard
abstract fun settle()

Flushes what the seeding and unstamp left to do: the measured window pays for neither.

Link copied to clipboard
abstract fun unstamp(except: List<String>, walkRecord: Boolean)

Removes the access attributes from the history of every account but except, as an import writes a log. The account's walk record goes too, unless walkRecord keeps it: a run with nothing to walk.

Link copied to clipboard
abstract fun waits(): Map<String, Int>

What the store's sessions of the log are doing now, by what they wait on: one sample.

Link copied to clipboard
abstract fun walk(): WalkRecord?

The account's walk record; null when none is recorded.