Skip to content

Commit 266f9af

Browse files
committed
Improve docs for the merging event source
1 parent 0da98f8 commit 266f9af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

krescent-core/src/main/kotlin/dev/helight/krescent/source/impl/MergingStreamingEventSource.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import java.util.*
1717
* into a single continuous flow of events. Events are streamed in order of their timestamps across
1818
* the provided sources.
1919
*
20+
* Fetch operations are performed in lazy batches, fetching a maximum of [batchSize] events from each source
21+
* at a time. Streaming operations use a k-way merge with a minimum age threshold for newly received events.
22+
*
2023
* @param sources A map of string keys to their corresponding [StreamingEventSource] instances. Each source
2124
* represents an independent stream of events to be merged.
2225
* @param minAge The minimum age (in milliseconds) of events to be considered safe for streaming. Events

0 commit comments

Comments
 (0)