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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncConnectionSource
A source of connections to a single MongoDB server.
|
interface |
AsyncReadBinding
An asynchronous factory of connection sources to servers that can be read from and that satisfy the specified read preference.
|
interface |
AsyncReadWriteBinding
An asynchronous factory of connection sources to servers that can be read from or written to.
|
interface |
AsyncWriteBinding
An asynchronous factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary.
|
interface |
ConnectionSource
A source of connections to a single MongoDB server.
|
interface |
ReadBinding
A factory of connection sources to servers that can be read from and that satisfy the specified read preference.
|
interface |
ReadWriteBinding
A factory of connection sources to servers that can be read from or written to.
|
interface |
WriteBinding
A factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary.
|
Modifier and Type | Class and Description |
---|---|
class |
AsyncClusterBinding
A simple ReadWriteBinding implementation that supplies write connection sources bound to a possibly different primary each time, and a
read connection source bound to a possible different server each time.
|
class |
AsyncSingleConnectionReadBinding
An asynchronous read binding that is bound to a single connection.
|
class |
ClusterBinding
A simple ReadWriteBinding implementation that supplies write connection sources bound to a possibly different primary each time, and a
read connection source bound to a possible different server each time.
|
class |
SingleConnectionReadBinding
A read binding that is bound to a single connection.
|
class |
SingleServerBinding
A simple binding where all connection sources are bound to the server specified in the constructor.
|
Modifier and Type | Method and Description |
---|---|
ReferenceCounted |
ReferenceCounted.retain()
Retain an additional reference to this object.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AsyncConnection
An asynchronous connection to a MongoDB server with non-blocking operations.
|
interface |
Connection
A synchronous connection to a MongoDB server with blocking operations.
|
Copyright © 2016. All Rights Reserved.