Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client.callback |
Provides implementation for various transformations, implemented in the form of
Callback s, that are used by the driver. |
com.allanbank.mongodb.client.message |
Low level messages to be sent to the MongoDB server.
|
Modifier and Type | Method and Description |
---|---|
List<BatchedWrite.Bundle> |
BatchedWrite.toBundles(String collectionName,
long maxCommandSize,
int maxOperationsPerBundle)
Creates write commands for all of the insert, updates and deletes.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BatchedWriteCallback.callback(BatchedWrite.Bundle bundle,
Reply result)
Callback for a bundle of write operations sent via the write commands.
|
protected void |
BatchedWriteCallback.exception(BatchedWrite.Bundle bundle,
Throwable thrown)
Callback for a bundle of write operations sent via the write commands has
failed.
|
Constructor and Description |
---|
BatchedWriteCallback(String databaseName,
String collectionName,
Callback<Long> results,
BatchedWrite write,
Client client,
List<BatchedWrite.Bundle> bundles)
Creates a new BatchedWriteCallback.
|
BatchedWriteCallback(String databaseName,
String collectionName,
List<Callback<Reply>> realCallbacks,
BatchedWrite write,
List<BatchedWrite.Bundle> bundles)
Creates a new BatchedWriteCallback.
|
Modifier and Type | Method and Description |
---|---|
BatchedWrite.Bundle |
BatchedWriteCommand.getBundle()
Returns the bundle for the batched write.
|
Constructor and Description |
---|
BatchedWriteCommand(String databaseName,
String collectionName,
BatchedWrite.Bundle bundle)
Create a new BatchedWriteCommand.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.