Package com.mongodb.binding
This package contains classes that manage binding to MongoDB servers for various operations.
-
Interface Summary Interface Description AsyncConnectionSource A source of connections to a single MongoDB server.AsyncReadBinding An asynchronous factory of connection sources to servers that can be read from and that satisfy the specified read preference.AsyncReadWriteBinding An asynchronous factory of connection sources to servers that can be read from or written to.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.ConnectionSource A source of connections to a single MongoDB server.ReadBinding A factory of connection sources to servers that can be read from and that satisfy the specified read preference.ReadWriteBinding A factory of connection sources to servers that can be read from or written to.ReferenceCounted An interface for reference-counted objects.WriteBinding A factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary. -
Class Summary Class Description 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.AsyncSingleConnectionReadBinding An asynchronous read binding that is bound to a single connection.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.SingleConnectionReadBinding A read binding that is bound to a single connection.SingleServerBinding A simple binding where all connection sources are bound to the server specified in the constructor.