java.lang.Object | |
↳ | com.mongodb.DBTCPConnector |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
does a read operation on the database
| |||||||||||
does a read operation on the database
| |||||||||||
does a read operation on the database
| |||||||||||
Gets the list of seed server addresses
| |||||||||||
Gets the DBPortPool associated with a ServerAddress.
| |||||||||||
Gets the maximum size for a BSON object supported by the current master server.
| |||||||||||
Gets the list of server addresses currently seen by the connector.
| |||||||||||
returns true if the connector is in a usable state
| |||||||||||
End the current "request", if this thread is in one.
| |||||||||||
Ensures that a connection exists for the "consistent request"
| |||||||||||
Start a "request".
| |||||||||||
does a write operation
| |||||||||||
does a write operation
| |||||||||||
Assigns a new DBPortPool for a given ServerAddress.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.mongodb.DBConnector
|
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 |
---|
Gets the DBPortPool associated with a ServerAddress.
Gets the maximum size for a BSON object supported by the current master server. Note that this value may change over time depending on which server is master.
Gets the list of server addresses currently seen by the connector. This includes addresses auto-discovered from a replica set.
returns true if the connector is in a usable state
End the current "request", if this thread is in one. By ending a request when it is safe to do so the built-in connection- pool is allowed to reassign requests to different sockets in order to more effectively balance load. See requestStart for more information.
Ensures that a connection exists for the "consistent request"
Start a "request". A "request" is a group of operations in which order matters. Examples include inserting a document and then performing a query which expects that document to have been inserted, or performing an operation and then using com.mongodb.Mongo.getLastError to perform error-checking on that operation. When a thread performs operations in a "request", all operations will be performed on the same socket, so they will be correctly ordered.
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 |
---|
Assigns a new DBPortPool for a given ServerAddress. This is used to obtain a new pool when the resolved IP of a host changes, for example. User application should not have to call this method directly.