public class ReactiveMongoClientImpl extends Object implements ReactiveMongoClient
Constructor and Description |
---|
ReactiveMongoClientImpl(com.mongodb.reactivestreams.client.MongoClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the client, which will close all underlying cached resources, including, for example,
sockets and background monitoring threads.
|
ReactiveMongoDatabase |
getDatabase(String name)
Retrieves a
ReactiveMongoDatabase with the given name. |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> |
listDatabaseNames()
Gets a list of the database names.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> |
listDatabaseNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets a list of the database names.
|
org.reactivestreams.Publisher<String> |
listDatabaseNamesAsPublisher()
Gets a list of the database names.
|
org.reactivestreams.Publisher<String> |
listDatabaseNamesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets a list of the database names.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listDatabases()
Gets the list of database descriptors.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listDatabases(Class<T> clazz)
Gets the list of databases.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listDatabases(Class<T> clazz,
DatabaseListOptions options)
Gets the list of databases.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets the list of databases as a stream.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Gets the list of databases.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz,
DatabaseListOptions options)
Gets the list of databases.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession,
DatabaseListOptions options)
Gets the list of databases as a stream.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listDatabases(DatabaseListOptions options)
Gets the list of database descriptors.
|
com.mongodb.reactivestreams.client.ListDatabasesPublisher<org.bson.Document> |
listDatabasesAsPublisher()
Gets the list of database descriptors.
|
<T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> |
listDatabasesAsPublisher(Class<T> clazz)
Gets the list of databases.
|
com.mongodb.reactivestreams.client.ListDatabasesPublisher<org.bson.Document> |
listDatabasesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Gets the list of databases as a stream.
|
<T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> |
listDatabasesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Gets the list of databases.
|
CompletionStage<com.mongodb.reactivestreams.client.ClientSession> |
startSession()
Creates a client session.
|
CompletionStage<com.mongodb.reactivestreams.client.ClientSession> |
startSession(com.mongodb.ClientSessionOptions options)
Creates a client session.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch()
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(ChangeStreamOptions options)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(Class<T> clazz)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(Class<T> clazz,
ChangeStreamOptions options)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
ChangeStreamOptions options)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz,
ChangeStreamOptions options)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
ChangeStreamOptions options)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz,
ChangeStreamOptions options)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this client.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
ChangeStreamOptions options)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this client.
|
<T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz,
ChangeStreamOptions options)
Creates a change stream for this client.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher()
Creates a change stream for this client.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(Class<T> clazz)
Creates a change stream for this client.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this client.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<T> clazz)
Creates a change stream for this client.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this client.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this client.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this client.
|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline,
Class<T> clazz)
Creates a change stream for this client.
|
public ReactiveMongoClientImpl(com.mongodb.reactivestreams.client.MongoClient client)
public ReactiveMongoDatabase getDatabase(String name)
ReactiveMongoClient
ReactiveMongoDatabase
with the given name.getDatabase
in interface ReactiveMongoClient
name
- the name, must not be null
ReactiveMongoDatabase
public void close()
ReactiveMongoClient
close
in interface ReactiveMongoClient
close
in interface Closeable
close
in interface AutoCloseable
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> listDatabaseNames()
ReactiveMongoClient
listDatabaseNames
in interface ReactiveMongoClient
public org.reactivestreams.Publisher<String> listDatabaseNamesAsPublisher()
ReactiveMongoClient
listDatabaseNamesAsPublisher
in interface ReactiveMongoClient
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<String> listDatabaseNames(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
listDatabaseNames
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic org.reactivestreams.Publisher<String> listDatabaseNamesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
listDatabaseNamesAsPublisher
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic com.mongodb.reactivestreams.client.ListDatabasesPublisher<org.bson.Document> listDatabasesAsPublisher()
ReactiveMongoClient
listDatabasesAsPublisher
in interface ReactiveMongoClient
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listDatabases()
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listDatabases(DatabaseListOptions options)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
options
- the stream options (max time, filter, name only...), may be null
public <T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> listDatabasesAsPublisher(Class<T> clazz)
ReactiveMongoClient
listDatabasesAsPublisher
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clazz
- the class to cast the database documents topublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listDatabases(Class<T> clazz)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clazz
- the class to cast the database documents topublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listDatabases(Class<T> clazz, DatabaseListOptions options)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clazz
- the class to cast the database documents tooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ListDatabasesPublisher<org.bson.Document> listDatabasesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
listDatabasesAsPublisher
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession, DatabaseListOptions options)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <T> com.mongodb.reactivestreams.client.ListDatabasesPublisher<T> listDatabasesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoClient
listDatabasesAsPublisher
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clientSession
- the client session with which to associate this operationclazz
- the class to cast the database documents topublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clientSession
- the client session with which to associate this operationclazz
- the class to cast the database documents topublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> listDatabases(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, DatabaseListOptions options)
ReactiveMongoClient
listDatabases
in interface ReactiveMongoClient
T
- the type of the class to use instead of Document
.clientSession
- the client session with which to associate this operationclazz
- the class to cast the database documents tooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher()
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
ReactiveMongoClient
watch
in interface ReactiveMongoClient
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
options
- the stream optionspublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(Class<T> clazz)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
T
- the target document type of the iterable.clazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
pipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
pipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
pipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
T
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoClient
watchAsPublisher
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic <T> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<T>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<T> clazz, ChangeStreamOptions options)
ReactiveMongoClient
watch
in interface ReactiveMongoClient
T
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic CompletionStage<com.mongodb.reactivestreams.client.ClientSession> startSession()
ReactiveMongoClient
startSession
in interface ReactiveMongoClient
CompletionStage
completed when the session is ready to be used.public CompletionStage<com.mongodb.reactivestreams.client.ClientSession> startSession(com.mongodb.ClientSessionOptions options)
ReactiveMongoClient
startSession
in interface ReactiveMongoClient
options
- the options for the client sessionCompletionStage
completed when the session is ready to be used.Copyright © 2019 JBoss by Red Hat. All rights reserved.