Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
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.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(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.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(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.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(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.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.
|
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.
|
Copyright © 2018. All rights reserved.