Package-level declarations

Types

Link copied to clipboard
class AggregatePlacement(val log: String? = null, val snapshot: String? = null, val querySnapshot: String? = null, val snapshotGeneration: Int = 1, val querySnapshotGeneration: Int = 1)

One aggregate type's stores: its log store (.log.store), its snapshot store (.snapshot.store), and the store its snapshot queries read, querySnapshot (.query.snapshot.store), which keeps a copy of them when it is another; none set, the defaults.

Link copied to clipboard

Which backend a node runs on (wow.backend).

Link copied to clipboard
class StoreLayout(val log: String, val snapshot: String = log, logs: Map<AggregateType, String> = emptyMap(), snapshots: Map<AggregateType, String> = emptyMap(), copies: Map<AggregateType, String> = emptyMap(), generations: Map<AggregateType, Pair<Int, Int>> = emptyMap())

Where each aggregate's log and snapshots are: its log on the store log names (wow.log.store) unless the logs map names another for its type (wow.aggregates.[<context>.<aggregate>].log.store); its snapshots on one store, the snapshot store (wow.snapshot.store, the log store by default) unless the snapshots map names another for its type (.snapshot.store); and, when its queries read another store (.query.snapshot.store), a copy of them there, which its own subscription writes. The snapshot store is each context's default one, whose subscription is wow.snapshot.

Link copied to clipboard
class StorePlacements(val log: String? = null, val snapshot: String? = null, val aggregates: Map<String, AggregatePlacement> = emptyMap())

Where a host's configuration places the logs and snapshots, as the wow.* keys say: the default log store (wow.log.store), the default snapshot store (wow.snapshot.store), and each aggregate's own, by <context>.<aggregate> (aggregates, wow.aggregates.[<context>.<aggregate>]).

Link copied to clipboard

The store types known by name: auto (wow.backend only), and the built-in backends' types. Any other type is a community backend's, served when its StoreProvider is found.