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