| Package | Description |
|---|---|
| com.mongodb.binding |
This package contains classes that manage binding to MongoDB servers for various operations.
|
| com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
| com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
ConnectionSource.getConnection()
Gets a connection from this source.
|
| Constructor and Description |
|---|
SingleConnectionReadBinding(ReadPreference readPreference,
ServerDescription serverDescription,
Connection connection)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
Server.getConnection()
Gets a connection to this server.
|
Connection |
Connection.retain() |
| Modifier and Type | Method and Description |
|---|---|
protected BulkWriteResult |
InsertOperation.executeCommandProtocol(Connection connection) |
protected abstract BulkWriteResult |
BaseWriteOperation.executeCommandProtocol(Connection connection)
Executes the write command protocol.
|
protected BulkWriteResult |
DeleteOperation.executeCommandProtocol(Connection connection) |
protected BulkWriteResult |
UpdateOperation.executeCommandProtocol(Connection connection) |
protected WriteConcernResult |
InsertOperation.executeProtocol(Connection connection) |
protected abstract WriteConcernResult |
BaseWriteOperation.executeProtocol(Connection connection)
Executes the write protocol
|
protected WriteConcernResult |
DeleteOperation.executeProtocol(Connection connection) |
protected WriteConcernResult |
UpdateOperation.executeProtocol(Connection connection) |
Copyright © 2016. All Rights Reserved.