public class MongoSharedCollectionsKt
@NotNull
public static <T> com.mongodb.reactivestreams.client.MongoCollection<T> withKMongo(@NotNull
com.mongodb.reactivestreams.client.MongoCollection<T> $this$withKMongo)
Returns a MongoCollection with a KMongo codec.
public static <T> void watchIndefinitely(@NotNull
com.mongodb.reactivestreams.client.MongoCollection<T> $this$watchIndefinitely,
@NotNull
kotlin.jvm.functions.Function1<? super com.mongodb.reactivestreams.client.MongoCollection<T>,? extends com.mongodb.reactivestreams.client.ChangeStreamPublisher<T>> watchProvider,
@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> subscribeListener,
@NotNull
kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> errorListener,
@NotNull
kotlin.jvm.functions.Function0<kotlin.Unit> reopenListener,
long reopenDelayInMS,
@NotNull
kotlin.jvm.functions.Function1<? super com.mongodb.client.model.changestream.ChangeStreamDocument<T>,kotlin.Unit> listener)
Watches collection changes. Open a new stream if an invalidate event occurs. The basic idea is to survive automatically to replicaset changes
watchProvider - provides ChangeStreamPublishersubscribeListener - Triggered when watch is started (or reopened)errorListener - listen exceptionsreopenListener - Triggered when watch is reopenedreopenDelayInMS - wait the specified time before trying to recoveringlistener - the main listener