@Deprecated public interface DBConnector
Modifier and Type | Method and Description |
---|---|
CommandResult |
authenticate(MongoCredential credentials)
Deprecated.
Authenticate using the given credentials.
|
com.mongodb.Response |
call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
com.mongodb.Response |
call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
Deprecated.
does a read operation on the database
|
com.mongodb.Response |
call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
Deprecated.
does a read operation on the database
|
boolean |
isOpen()
Deprecated.
returns true if the connector is in a usable state
|
void |
requestDone()
Deprecated.
terminates the "consistent request".
|
void |
requestEnsureConnection()
Deprecated.
Ensures that a connection exists for the "consistent request"
|
void |
requestStart()
Deprecated.
initiates a "consistent request" on the thread.
|
WriteResult |
say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern)
Deprecated.
does a write operation
|
WriteResult |
say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
Deprecated.
does a write operation
|
void requestStart()
void requestDone()
void requestEnsureConnection()
WriteResult say(DB db, com.mongodb.OutMessage m, WriteConcern concern)
db
- the databasem
- the request messageconcern
- the write concernMongoException
WriteResult say(DB db, com.mongodb.OutMessage m, WriteConcern concern, ServerAddress hostNeeded)
db
- the databasem
- the request messageconcern
- the write concernhostNeeded
- specific server to connect toMongoException
com.mongodb.Response call(DB db, DBCollection coll, com.mongodb.OutMessage m, ServerAddress hostNeeded, DBDecoder decoder)
db
- the databasecoll
- the collectionm
- the request messagehostNeeded
- specific server to connect todecoder
- the decoder to useMongoException
com.mongodb.Response call(DB db, DBCollection coll, com.mongodb.OutMessage m, ServerAddress hostNeeded, int retries)
db
- the databasecoll
- the collectionm
- the request messagehostNeeded
- specific server to connect toretries
- the number of retries in case of an errorMongoException
com.mongodb.Response call(DB db, DBCollection coll, com.mongodb.OutMessage m, ServerAddress hostNeeded, int retries, ReadPreference readPref, DBDecoder decoder)
db
- the databasecoll
- the collectionm
- the request messagehostNeeded
- specific server to connect toretries
- number of retries in case of errorreadPref
- the read preferencesdecoder
- the decoder to useMongoException
boolean isOpen()
CommandResult authenticate(MongoCredential credentials)
credentials
- the credentials.CommandFailureException
- if the authentication failed