com.mongodb.DBConnector |
Known Indirect Subclasses |
Interface that provides the ability to exchange request/response with the database
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
does a read operation on the database
| |||||||||||
does a read operation on the database
| |||||||||||
does a read operation on the database
| |||||||||||
returns true if the connector is in a usable state
| |||||||||||
terminates the "consistent request".
| |||||||||||
Ensures that a connection exists for the "consistent request"
| |||||||||||
initiates a "consistent request" on the thread.
| |||||||||||
does a write operation
| |||||||||||
does a write operation
|
does a read operation on the database
db | the database |
---|---|
coll | the collection |
m | the request message |
hostNeeded | specific server to connect to |
retries | the number of retries in case of an error |
MongoException |
---|
does a read operation on the database
db | the database |
---|---|
coll | the collection |
m | the request message |
hostNeeded | specific server to connect to |
decoder | the decoder to use |
MongoException |
---|
does a read operation on the database
db | the database |
---|---|
coll | the collection |
m | the request message |
hostNeeded | specific server to connect to |
retries | number of retries in case of error |
readPref | the read preferences |
decoder | the decoder to use |
MongoException |
---|
returns true if the connector is in a usable state
terminates the "consistent request".
Ensures that a connection exists for the "consistent request"
initiates a "consistent request" on the thread. Once this has been called, the connector will ensure that the same underlying connection is always used for a given thread. This happens until requestStop() is called.
does a write operation
db | the database |
---|---|
m | the request message |
concern | the write concern |
hostNeeded | specific server to connect to |
MongoException |
---|
does a write operation
db | the database |
---|---|
m | the request message |
concern | the write concern |
MongoException |
---|