Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
com.allanbank.mongodb.connection.message |
Low level messages to be sent to the MongoDB server.
|
Modifier and Type | Field and Description |
---|---|
static Durability |
Durability.ACK
The durability that says no durability is required.
|
static Durability |
Durability.NONE
The durability that says no durability is required.
|
Modifier and Type | Method and Description |
---|---|
static Durability |
Durability.fsyncDurable(int waitTimeoutMillis)
Creates an fsync() durability.
|
Durability |
MongoClientConfiguration.getDefaultDurability()
Returns the default durability for write operations on the server.
|
Durability |
MongoDatabase.getDurability()
Returns the durability for write operations sent to the server from this
MongoDatabase instance. |
Durability |
MongoCollection.getDurability()
Returns the durability for write operations sent to the server from this
MongoCollection instance. |
static Durability |
Durability.journalDurable(int waitTimeoutMillis)
Creates an journal durability.
|
static Durability |
Durability.replicaDurable(boolean ensureJournaled,
int minimumReplicas,
int waitTimeoutMillis)
Creates a multiple replica durability.
|
static Durability |
Durability.replicaDurable(boolean ensureJournaled,
String waitForReplicasByMode,
int waitTimeoutMillis)
Creates a multiple replica durability.
|
static Durability |
Durability.replicaDurable(int waitTimeoutMillis)
Creates a single replica durability.
|
static Durability |
Durability.replicaDurable(int minimumReplicas,
int waitTimeoutMillis)
Creates a multiple replica durability.
|
static Durability |
Durability.replicaDurable(String waitForReplicasByMode,
int waitTimeoutMillis)
Creates a multiple replica durability.
|
static Durability |
Durability.valueOf(String value)
Converts a string into a Durability, if possible.
|
Modifier and Type | Method and Description |
---|---|
long |
MongoCollection.delete(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
long |
MongoCollection.delete(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
MongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
MongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
Future<Long> |
MongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
Future<Long> |
MongoCollection.deleteAsync(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
int |
MongoCollection.insert(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
MongoCollection.insert(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
Future<Integer> |
MongoCollection.insertAsync(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
MongoCollection.insertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
MongoCollection.insertAsync(Callback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
Future<Integer> |
MongoCollection.insertAsync(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
MongoCollection.save(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
MongoCollection.saveAsync(Callback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
Future<Integer> |
MongoCollection.saveAsync(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
MongoClientConfiguration.setDefaultDurability(Durability defaultDurability)
Sets the default durability for write operations on the server to the new
value.
|
void |
MongoDatabase.setDurability(Durability durability)
Sets the durability for write operations from this
MongoDatabase
instance. |
void |
MongoCollection.setDurability(Durability durability)
Sets the durability for write operations from this
MongoCollection instance. |
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
long |
MongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
MongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
MongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Future<Long> |
MongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
Future<Long> |
MongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Constructor and Description |
---|
MongoClientConfiguration(MongoDbUri mongoDbUri,
Durability defaultDurability)
Creates a new
MongoClientConfiguration instance using a MongoDB
style URL to initialize its state. |
Modifier and Type | Method and Description |
---|---|
Durability |
ClientImpl.getDefaultDurability()
Returns the
Durability from the MongoClientConfiguration . |
Durability |
SerialClientImpl.getDefaultDurability()
Returns the
Durability from the MongoClientConfiguration . |
Durability |
Client.getDefaultDurability()
Returns the
Durability from the MongoClientConfiguration . |
Durability |
AbstractMongoCollection.getDurability()
Returns the durability for write operations sent to the server from this
MongoCollection instance. |
Durability |
MongoDatabaseImpl.getDurability()
Returns the durability for write operations sent to the server from this
MongoDatabase instance. |
Modifier and Type | Method and Description |
---|---|
protected GetLastError |
AbstractMongoCollection.asGetLastError(Durability durability)
Converts the
Durability into a GetLastError command. |
long |
AbstractMongoCollection.delete(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
long |
AbstractMongoCollection.delete(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
abstract void |
AbstractMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
MongoCollectionImpl.deleteAsync(Callback<Long> results,
DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
void |
AbstractMongoCollection.deleteAsync(Callback<Long> results,
DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
Future<Long> |
AbstractMongoCollection.deleteAsync(DocumentAssignable query,
boolean singleDelete,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
Future<Long> |
AbstractMongoCollection.deleteAsync(DocumentAssignable query,
Durability durability)
Deletes a set of documents matching a query from the collection.
|
int |
AbstractMongoCollection.insert(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
AbstractMongoCollection.insert(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
Future<Integer> |
AbstractMongoCollection.insertAsync(boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
abstract void |
AbstractMongoCollection.insertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
MongoCollectionImpl.insertAsync(Callback<Integer> results,
boolean continueOnError,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
void |
AbstractMongoCollection.insertAsync(Callback<Integer> results,
Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
Future<Integer> |
AbstractMongoCollection.insertAsync(Durability durability,
DocumentAssignable... documents)
Inserts a set of documents into the collection.
|
int |
AbstractMongoCollection.save(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
abstract void |
AbstractMongoCollection.saveAsync(Callback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
MongoCollectionImpl.saveAsync(Callback<Integer> results,
DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
Future<Integer> |
AbstractMongoCollection.saveAsync(DocumentAssignable document,
Durability durability)
Saves the
document to the collection. |
void |
AbstractMongoCollection.setDurability(Durability durability)
Sets the durability for write operations from this
MongoCollection instance. |
void |
MongoDatabaseImpl.setDurability(Durability durability)
Sets the durability for write operations from this
MongoDatabase
instance. |
long |
AbstractMongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
long |
AbstractMongoCollection.update(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
abstract void |
AbstractMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
MongoCollectionImpl.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
void |
AbstractMongoCollection.updateAsync(Callback<Long> results,
DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Future<Long> |
AbstractMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
boolean multiUpdate,
boolean upsert,
Durability durability)
Applies updates to a set of documents within the collection.
|
Future<Long> |
AbstractMongoCollection.updateAsync(DocumentAssignable query,
DocumentAssignable update,
Durability durability)
Applies updates to a set of documents within the collection.
|
Constructor and Description |
---|
GetLastError(String dbName,
Durability durability)
Create a new GetLastError.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.