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:
Method | Description |
---|---|
|
T build() Builds (creates) a state store Used when:
|
|
|
|
boolean loggingEnabled() Indicates whether change-logging should be enabled ( Used when:
|
|
String name() Name of state stores to build (for identification purposes) |
|
StoreBuilder<T> withCachingDisabled() Disables caching on state stores |
|
StoreBuilder<T> withCachingEnabled() Enables caching on state stores |
|
StoreBuilder<T> withLoggingDisabled() Disables change-logging on state stores (i.e. a changelog for any changes made to the stores) |
|
StoreBuilder<T> withLoggingEnabled(Map<String, String> config) Enables change-logging on state stores (i.e. a changelog for any changes made to the stores) |