Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
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.nearest(TagSet tagSet,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to the primary or a secondary with the given set of tags that is less stale than the
given maximum.
|
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.primaryPreferred(TagSet tagSet,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags
that is less stale than the given maximum.
|
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.secondary(TagSet tagSet,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum.
|
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.
|
static TaggableReadPreference |
ReadPreference.secondaryPreferred(TagSet tagSet,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum,
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.nearest(List<TagSet> tagSetList,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags that is less stale than
the given maximum.
|
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.primaryPreferred(List<TagSet> tagSetList,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags
that is less stale than the given maximum.
|
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.secondary(List<TagSet> tagSetList,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to a secondary with one of the given sets of tags that is less stale than
the given maximum.
|
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.secondaryPreferred(List<TagSet> tagSetList,
long maxStaleness,
TimeUnit timeUnit)
Gets a read preference that forces reads to a secondary with one of the given sets of tags that is less stale than
the given maximum.
|
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.
|
static TaggableReadPreference |
ReadPreference.valueOf(String name,
List<TagSet> tagSetList,
long maxStaleness,
TimeUnit timeUnit)
Creates a taggable read preference from the given read preference name, list of tag sets, and max allowable staleness of secondaries.
|
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)
Deprecated.
Replace with a filter on ServerDescription in the caller
|
List<ServerDescription> |
ClusterDescription.getSecondaries(TagSet tagSet)
Deprecated.
Replace with a filter on ServerDescription in the caller
|
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 © 2018. All rights reserved.