public interface StreamStats
Environment.queryStreamStats(String)| Modifier and Type | Method and Description |
|---|---|
long |
committedChunkId()
The ID (offset) of the committed chunk (block of messages) in the stream.
|
long |
firstOffset()
The first offset in the stream.
|
long firstOffset()
NoOffsetException - if there is no first offset yetlong committedChunkId()
It is the offset of the first message in the last chunk confirmed by a quorum of the stream cluster members (leader and replicas).
The committed chunk ID is a good indication of what the last offset of a stream can be at a given time. The value can be stale as soon as the application reads it though, as the committed chunk ID for a stream that is published to changes all the time.
NoOffsetException - if there is no committed chunk yetMessageHandler.Context.committedChunkId()Copyright © 2024 Broadcom Inc. and/or its subsidiaries. All rights reserved.