Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.event |
This package contains cluster and connection event related classes
|
com.mongodb.selector |
Contains classes that determine how to select the server to connect to in order to send commands or queries.
|
Modifier and Type | Method and Description |
---|---|
ClusterDescription |
MongoIncompatibleDriverException.getClusterDescription()
The cluster description which was determined to be incompatible.
|
Modifier and Type | Method and Description |
---|---|
abstract List<ServerDescription> |
ReadPreference.choose(ClusterDescription clusterDescription)
Chooses the servers from the given cluster than match this read preference.
|
Constructor and Description |
---|
MongoIncompatibleDriverException(String message,
ClusterDescription clusterDescription)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ClusterDescription |
Cluster.getDescription()
Get the description of this cluster.
|
Modifier and Type | Method and Description |
---|---|
ClusterDescription |
ClusterDescriptionChangedEvent.getClusterDescription()
Gets the new cluster description.
|
Constructor and Description |
---|
ClusterDescriptionChangedEvent(ClusterId clusterId,
ClusterDescription clusterDescription)
Constructs a new instance of the event.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
ServerSelector.select(ClusterDescription clusterDescription)
Select a list of server descriptions from the given cluster description according to some criteria.
|
List<ServerDescription> |
PrimaryServerSelector.select(ClusterDescription clusterDescription)
Deprecated.
|
List<ServerDescription> |
CompositeServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ReadPreferenceServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
ServerAddressSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
WritableServerSelector.select(ClusterDescription clusterDescription) |
List<ServerDescription> |
LatencyMinimizingServerSelector.select(ClusterDescription clusterDescription) |
Copyright © 2016. All Rights Reserved.