public interface Client
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the client.
|
ClusterType |
getClusterType()
Returns the type of cluster the client is connected to.
|
MongoDbConfiguration |
getConfig()
Returns the configuration being used by the logical MongoDB connection.
|
Durability |
getDefaultDurability()
Returns the
Durability from the MongoDbConfiguration . |
ReadPreference |
getDefaultReadPreference()
Returns the
ReadPreference from the MongoDbConfiguration . |
String |
send(Callback<Reply> reply,
Message... messages)
Sends a message on the connection.
|
String |
send(Message... messages)
Sends a message on the connection.
|
void close()
ClusterType getClusterType()
MongoDbConfiguration getConfig()
Durability getDefaultDurability()
Durability
from the MongoDbConfiguration
.MongoDbConfiguration
.ReadPreference getDefaultReadPreference()
ReadPreference
from the MongoDbConfiguration
.MongoDbConfiguration
.String send(Callback<Reply> reply, Message... messages) throws MongoDbException
reply
- The callback to notify of responses to the messages. May be
null.messages
- The messages to send on the connection. The messages will be
sent one after the other and are guaranteed to be contiguous
and have sequential message ids.MongoDbException
- On an error sending the message.String send(Message... messages) throws MongoDbException
messages
- The messages to send on the connection. The messages will be
sent one after the other and are guaranteed to be contiguous
and have sequential message ids.MongoDbException
- On an error sending the message.Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.