AbstractStoreBuilder — Fluent API for State Store Builders

AbstractStoreBuilder is the base implementation of the StoreBuilder contract for state store builders that offer a fluent API to build state stores.

Note
AbstractStoreBuilder is a Java abstract class and cannot be created directly. It is created indirectly for the concrete AbstractStoreBuilders.
Table 1. AbstractStoreBuilders
AbstractStoreBuilder Description

KeyValueStoreBuilder

Builds KeyValueStores

SessionStoreBuilder

Builds SessionStores

TimestampedKeyValueStoreBuilder

Builds…​FIXME

TimestampedWindowStoreBuilder

Builds…​FIXME

WindowStoreBuilder

Builds WindowStores

Creating AbstractStoreBuilder Instance

AbstractStoreBuilder takes the following to be created:

AbstractStoreBuilder initializes the internal properties.

Note
AbstractStoreBuilder is a Java abstract class and cannot be created directly. It is created indirectly for the concrete AbstractStoreBuilders.

withLoggingEnabled Method

StoreBuilder<T> withLoggingEnabled(Map<String, String> config)
Note
withLoggingEnabled is part of the StoreBuilder Contract to enable change-logging on state stores.

withLoggingEnabled simply turns the enableLogging flag on (true) and the logConfig to the given config (Map<String, String>).

withLoggingDisabled Method

StoreBuilder<T> withLoggingDisabled()
Note
withLoggingDisabled is part of the StoreBuilder Contract to disable change-logging on state stores.

withLoggingDisabled simply turns the enableLogging flag off (false) and clears the logConfig.

withCachingEnabled Method

StoreBuilder<T> withCachingEnabled()
Note
withCachingEnabled is part of the StoreBuilder Contract to enable caching on state stores.

withCachingEnabled simply turns the enableCaching flag on (true).

withCachingDisabled Method

StoreBuilder<T> withCachingDisabled()
Note
withCachingDisabled is part of the StoreBuilder Contract to disable caching on state stores.

withCachingDisabled simply turns the enableCaching flag off (false).

Internal Properties

Name Description

enableCaching

Flag to control whether to enable caching (true) or not (false)

enableLogging

Flag to control whether to enable logging (true) or not (false)

Default: true

logConfig

Change-logging configuration (Map<String, String>)

results matching ""

    No results matching ""