Expand description
Broker-backed execution runtime for built streams topologies.
The I/O traits, the global-store manager and the IQv2 query types build
for every target. The stream thread, its tasks, the broker adapters and the
KafkaStreams supervisor drive Kafka network clients, so they exist only on
native targets; on wasm32-unknown-unknown an embedder drives a task’s graph
through EmbeddedTask instead.
Re-exports§
pub use io::FetchBatch;pub use io::FetchedRec;pub use io::IsolationLevel;pub use io::OffsetStore;pub use io::RecordFetcher;pub use io::RecordProducer;
Modules§
- io
- The dependency-injected I/O that the runtime needs: it fetches source records, produces sink records, and commits and fetches offsets.
- iqv2
- Interactive Queries v2 (KIP-796 / 960 / 968): the
StateQueryRequest→KafkaStreams::query→StateQueryResultenvelope and its query objects.
Structs§
- Kafka
Streams - A managed Kafka Streams runtime.
- Read
Only KeyValue Store - Read-only composite KV store view, for Interactive Queries.
- Read
Only Session Store - Read-only composite session store view.
fetchgives each session as aWindowed<K>, which holds the key and[start, end], together with its value. - Read
Only Window Store - Read-only composite window store view.
fetchgives(windowStart, V)pairs. - Streams
Commit Interval - Positive, whole-millisecond Client Streams commit interval.
- Streams
Interactive Query Queue Capacity - Tokio-supported capacity shared by the Client Streams interactive-query queues.
- Streams
Poll Interval - Positive, whole-millisecond Client Streams processing poll interval.
- Streams
State Store Cache MaxBytes - Target-supported Client Streams state-store record-cache budget.
Constants§
- DEFAULT_
STREAMS_ COMMIT_ INTERVAL - Default delay between Client Streams commit attempts.
- DEFAULT_
STREAMS_ INTERACTIVE_ QUERY_ QUEUE_ CAPACITY - Default capacity of each Client Streams interactive-query request queue.
- DEFAULT_
STREAMS_ POLL_ INTERVAL - Default delay between Client Streams processing polls.
- DEFAULT_
STREAMS_ STATE_ STORE_ CACHE_ MAX_ BYTES - Default Client Streams state-store record-cache budget (the JVM default).
- MAX_
STREAMS_ STATE_ STORE_ CACHE_ MAX_ BYTES - The largest cache budget that both the public
i64API and the target’s internalusizecache accounting can represent.