Package org.apache.kafka.streams.state
package org.apache.kafka.streams.state
Provides interfaces for managing the intermediate state of a stateful streams application.
-
ClassDescriptionCollection of builtin
DslStoreSuppliers
for Kafka Streams.ADslStoreSuppliers
that supplies all stores backed by an in-memory mapADslStoreSuppliers
that supplies all stores backed by RocksDBDslKeyValueParams
is a wrapper class for all parameters that function as inputs toDslStoreSuppliers.keyValueStore(DslKeyValueParams)
.DslSessionParams
is a wrapper class for all parameters that function as inputs toDslStoreSuppliers.sessionStore(DslSessionParams)
.DslStoreSuppliers
defines a grouping of factories to construct stores for each of the types of state store implementations in Kafka Streams.DslWindowParams
is a wrapper class for all parameters that function as inputs toDslStoreSuppliers.windowStore(DslWindowParams)
.Represents a user defined endpoint in aKafkaStreams
application.A store supplier that can be used to create one or moreKeyValueStore<Bytes, byte[]>
instances of type <Bytes, byte[]>.KeyValueIterator<K,V> Iterator interface ofKeyValue
.KeyValueStore<K,V> A key-value store that supports put/get/delete and range queries.Used to enable querying of customStateStore
types via theKafkaStreams
API.Provides access to theQueryableStoreType
s provided withKafkaStreams
.A key-value store that only supports read operations.ReadOnlySessionStore<K,AGG> A session store that only supports read operations.ReadOnlyWindowStore<K,V> A window store that only supports read operations.An interface to that allows developers to customize the RocksDB settings for a given Store.A store supplier that can be used to create one or moreSessionStore<Byte, byte[]>
instances.SessionStore<K,AGG> Interface for storing the aggregated values of sessions.StateSerdes<K,V> Factory for creating serializers / deserializers for state stores in Kafka Streams.StoreBuilder<T extends StateStore>Build aStateStore
wrapped with optional caching and logging.Factory for creating state stores in Kafka Streams.StoreSupplier<T extends StateStore>A state store supplier which can create one or moreStateStore
instances.Deprecated.A key-(value/timestamp) store that supports put/get/delete and range queries.Interface for storing the aggregated values of fixed-size time windows.Combines a value from aKeyValue
with a timestamp.A representation of a versioned key-value store as aKeyValueStore
of type <Bytes, byte[]>.A store supplier that can be used to create one or more versioned key-value stores, specifically,VersionedBytesStore
instances.A key-value store that stores multiple record versions per key, and supports timestamp-based retrieval operations to return the latest record (per key) as of a specified timestamp.Combines a value (from a key-value record) with a timestamp, for use as the return type fromVersionedKeyValueStore.get(Object, long)
and related methods.Iterator interface ofVersionedRecord
.A store supplier that can be used to create one or moreWindowStore<Byte, byte[]>
instances of type <Byte, byte[]>.WindowStore<K,V> Interface for storing the aggregated values of fixed-size time windows.Iterator interface ofKeyValue
with key typedLong
used forWindowStore.fetch(Object, long, long)
andWindowStore.fetch(Object, Instant, Instant)
Users must call itsclose
method explicitly upon completeness to release resources, or use try-with-resources statement (available since JDK7) for thisCloseable
class.
StreamsMetadata