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.
|
Modifier and Type | Method and Description |
---|---|
List<TagSet> |
TaggableReadPreference.getTagSetList()
Gets the list of tag sets as a list of
TagSet instances. |
Modifier and Type | Method and Description |
---|---|
boolean |
TagSet.containsAll(TagSet tagSet)
Returns true if this tag set contains all of the elements of the specified tag set.
|
static TaggableReadPreference |
ReadPreference.nearest(TagSet tagSet)
Gets a read preference that forces reads to the primary or a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.primaryPreferred(TagSet tagSet)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.secondary(TagSet tagSet)
Gets a read preference that forces reads to a secondary with the given set of tags.
|
static TaggableReadPreference |
ReadPreference.secondaryPreferred(TagSet tagSet)
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
|
Modifier and Type | Method and Description |
---|---|
static TaggableReadPreference |
ReadPreference.nearest(List<TagSet> tagSetList)
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.primaryPreferred(List<TagSet> tagSetList)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.secondary(List<TagSet> tagSetList)
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.secondaryPreferred(List<TagSet> tagSetList)
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
|
static TaggableReadPreference |
ReadPreference.valueOf(String name,
List<TagSet> tagSetList)
Creates a taggable read preference from the given read preference name and list of tag sets.
|
Modifier and Type | Method and Description |
---|---|
TagSet |
ServerDescription.getTagSet()
A set of all tags assigned to this member.
|
Modifier and Type | Method and Description |
---|---|
List<ServerDescription> |
ClusterDescription.getAnyPrimaryOrSecondary(TagSet tagSet)
Gets a list of all the primaries and secondaries in this cluster that match the given replica set tags.
|
List<ServerDescription> |
ClusterDescription.getSecondaries(TagSet tagSet)
Get a list of all the secondaries in this cluster that match a given TagSet
|
boolean |
ServerDescription.hasTags(TagSet desiredTags)
Returns true if the server has the given tags.
|
ServerDescription.Builder |
ServerDescription.Builder.tagSet(TagSet tagSet)
A set of any tags assigned to this member.
|
Copyright © 2016. All Rights Reserved.