Companion

object Companion

Functions

Link copied to clipboard
fun memory(partitions: Int, snapshots: (context: String) -> SnapshotStore = { InMemorySnapshotStore() }): HostBackends

In memory, each context its own log, snapshots and timers: for one node, whose data does not outlive it. snapshots opens each context's snapshot store, an InMemorySnapshotStore unless a test wraps it (to query the snapshots on the memory backend, say).

Link copied to clipboard

The application's own factory: the host neither selects nor prepares its stores.

fun of(stores: Map<String, Store>, layout: StoreLayout, partitions: Int): HostBackends

The node's stores by name, each context's stores opened as layout says, its logs of partitions partitions.