StoreBuilder Contract — State Store Builders

StoreBuilder is the abstraction of state store builders that can build a state store (with optional caching and logging).

Note
AbstractStoreBuilder is the one and only known base implementation of the StoreBuilder Contract.

StoreBuilder is used to add a local or global state store to a topology using the following APIs:

Table 1. StoreBuilder Contract
Method Description

build

T build()

Builds (creates) a state store

Used when:

logConfig

Map<String, String> logConfig()

Configuration of the changelog for a state store

Used when…​FIXME

loggingEnabled

boolean loggingEnabled()

Indicates whether change-logging should be enabled (true) or not (false) on the state store

Used when:

name

String name()

Name of state stores to build (for identification purposes)

withCachingDisabled

StoreBuilder<T> withCachingDisabled()

Disables caching on state stores

withCachingEnabled

StoreBuilder<T> withCachingEnabled()

Enables caching on state stores

withLoggingDisabled

StoreBuilder<T> withLoggingDisabled()

Disables change-logging on state stores (i.e. a changelog for any changes made to the stores)

withLoggingEnabled

StoreBuilder<T> withLoggingEnabled(Map<String, String> config)

Enables change-logging on state stores (i.e. a changelog for any changes made to the stores)

results matching ""

    No results matching ""