public interface Client
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DOCUMENT_SIZE
The absolute maximum size for a BSON document supported by all versions
of MongoDB servers: 16MiB (16777216 ).
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the client.
|
ClusterType |
getClusterType()
Returns the type of cluster the client is connected to.
|
MongoClientConfiguration |
getConfig()
Returns the configuration being used by the logical MongoDB connection.
|
Durability |
getDefaultDurability()
Returns the
Durability from the MongoClientConfiguration. |
ReadPreference |
getDefaultReadPreference()
Returns the
ReadPreference from the
MongoClientConfiguration. |
String |
send(Message message,
Callback<Reply> replyCallback)
Sends a message on the connection.
|
String |
send(Message message1,
Message message2,
Callback<Reply> replyCallback)
Sends a message on the connection.
|
static final int MAX_DOCUMENT_SIZE
void close()
ClusterType getClusterType()
MongoClientConfiguration getConfig()
Durability getDefaultDurability()
Durability from the MongoClientConfiguration.MongoClientConfiguration.ReadPreference getDefaultReadPreference()
ReadPreference from the
MongoClientConfiguration.MongoClientConfiguration .String send(Message message, Callback<Reply> replyCallback) throws MongoDbException
message - The message to send on the connection.replyCallback - The callback to notify of responses to the messages. May be
null.MongoDbException - On an error sending the message.String send(Message message1, Message message2, Callback<Reply> replyCallback) throws MongoDbException
message1 - The first message to send on the connection.message2 - The second message to send on the connection.replyCallback - The callback to notify of responses to the message2.
May be null.MongoDbException - On an error sending the message.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.