public interface Message
Modifier and Type | Method and Description |
---|---|
String |
getDatabaseName()
Returns the name of the database.
|
ReadPreference |
getReadPreference()
Provides the details on which servers are eligible to receive the
message.
|
void |
write(int messageId,
BsonOutputStream out)
Writes the message from the stream.
|
String getDatabaseName()
ReadPreference getReadPreference()
ReadPreference
for which servers should be sent the
request.void write(int messageId, BsonOutputStream out) throws IOException
messageId
- The id to be assigned to the message.out
- The sink for data written.IOException
- On an error writing to the stream.Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.