Class BufferingChangeStreamCursor<TResult>

java.lang.Object
io.debezium.connector.mongodb.events.BufferingChangeStreamCursor<TResult>
Type Parameters:
TResult - the type of documents the cursor contains
All Implemented Interfaces:
com.mongodb.client.MongoChangeStreamCursor<BufferingChangeStreamCursor.ResumableChangeStreamEvent<TResult>>, com.mongodb.client.MongoCursor<BufferingChangeStreamCursor.ResumableChangeStreamEvent<TResult>>, Closeable, AutoCloseable, Iterator<BufferingChangeStreamCursor.ResumableChangeStreamEvent<TResult>>

@NotThreadSafe public class BufferingChangeStreamCursor<TResult> extends Object implements com.mongodb.client.MongoChangeStreamCursor<BufferingChangeStreamCursor.ResumableChangeStreamEvent<TResult>>
An implementation of MongoChangeStreamCursor which immediately starts consuming available events into a buffer.

Internally this cursor starts a BufferingChangeStreamCursor.EventFetcher as a separate thread on provided executor. Although the implementation is internally thread safe the cursors is not meant to be accessed concurrently from multiple threads.