Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Field and Description |
---|---|
static ReadConcern |
ReadConcern.DEFAULT
Use the servers default read concern.
|
static ReadConcern |
ReadConcern.LOCAL
Return the node's most recent copy of data.
|
static ReadConcern |
ReadConcern.MAJORITY
Return the node's most recent copy of the data confirmed as having been written to a majority of the nodes.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
MongoClientOptions.getReadConcern()
The read concern to use.
|
ReadConcern |
Mongo.getReadConcern()
Gets the read concern
|
ReadConcern |
ConnectionString.getReadConcern()
Gets the read concern specified in the connection string.
|
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.readConcern(ReadConcern readConcern)
Sets the read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
MongoCollection.getReadConcern()
Get the read concern for the MongoCollection.
|
ReadConcern |
MongoDatabase.getReadConcern()
Get the read concern for the MongoDatabase.
|
ReadConcern |
MongoClientSettings.getReadConcern()
The read concern to use.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.readConcern(ReadConcern readConcern)
Sets the read concern.
|
MongoCollection<TDocument> |
MongoCollection.withReadConcern(ReadConcern readConcern)
Create a new MongoCollection instance with a different read concern.
|
MongoDatabase |
MongoDatabase.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
MongoDatabase.getReadConcern()
Get the read concern for the MongoDatabase.
|
ReadConcern |
MongoCollection.getReadConcern()
Get the read concern for the MongoCollection.
|
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoDatabase.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
MongoCollection<TDocument> |
MongoCollection.withReadConcern(ReadConcern readConcern)
Create a new MongoCollection instance with a different read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
GridFSBucket.getReadConcern()
Get the read concern for the GridFSBucket.
|
Modifier and Type | Method and Description |
---|---|
GridFSBucket |
GridFSBucket.withReadConcern(ReadConcern readConcern)
Create a new MongoDatabase instance with a different read concern.
|
Modifier and Type | Method and Description |
---|---|
ReadConcern |
CountOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
DistinctOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
AggregateOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
ParallelCollectionScanOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
FindOperation.getReadConcern()
Gets the read concern
|
ReadConcern |
MapReduceWithInlineResultsOperation.getReadConcern()
Gets the read concern
|
Modifier and Type | Method and Description |
---|---|
CountOperation |
CountOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
DistinctOperation<T> |
DistinctOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
AggregateOperation<T> |
AggregateOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
ParallelCollectionScanOperation<T> |
ParallelCollectionScanOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
FindOperation<T> |
FindOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
MapReduceWithInlineResultsOperation<T> |
MapReduceWithInlineResultsOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
Copyright © 2016. All Rights Reserved.