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 | Field and Description |
---|---|
private Server |
SingleServerBinding.SingleServerBindingConnectionSource.server |
private Server |
ClusterBinding.ClusterBindingConnectionSource.server |
private Server |
AsyncClusterBinding.AsyncClusterBindingConnectionSource.server |
Constructor and Description |
---|
AsyncClusterBindingConnectionSource(Server server) |
Modifier and Type | Interface and Description |
---|---|
(package private) interface |
ClusterableServer
A logical connection to a MongoDB server that supports clustering along with other servers.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DefaultServer |
Modifier and Type | Field and Description |
---|---|
private SingleResultCallback<Server> |
BaseCluster.ServerSelectionRequest.callback |
Modifier and Type | Method and Description |
---|---|
private Server |
BaseCluster.selectRandomServer(ServerSelector serverSelector,
ClusterDescription clusterDescription) |
Server |
Cluster.selectServer(ServerSelector serverSelector)
Get a MongoDB server that matches the criteria defined by the serverSelector
|
Server |
BaseCluster.selectServer(ServerSelector serverSelector) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
BaseCluster.ServerSelectionRequest.onResult(Server server,
java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
void |
Cluster.selectServerAsync(ServerSelector serverSelector,
SingleResultCallback<Server> callback)
Asynchronously gets a MongoDB server that matches the criteria defined by the serverSelector.
|
void |
BaseCluster.selectServerAsync(ServerSelector serverSelector,
SingleResultCallback<Server> callback) |
Constructor and Description |
---|
ServerSelectionRequest(ServerSelector serverSelector,
ServerSelector compositeSelector,
long maxWaitTimeNanos,
SingleResultCallback<Server> callback) |