Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TaggableReadPreference.NearestReadPreference
Read from nearest node respective of tags.
|
(package private) static class |
TaggableReadPreference.PrimaryPreferredReadPreference
Read from primary if available, otherwise a secondary.
|
(package private) static class |
TaggableReadPreference.SecondaryPreferredReadPreference
Read from secondary if available, otherwise from primary, irrespective of tags.
|
(package private) static class |
TaggableReadPreference.SecondaryReadPreference
Read from secondary
|
Modifier and Type | Method and Description |
---|---|
static TaggableReadPreference |
ReadPreference.nearest(java.util.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(java.util.List<TagSet> tagSetList,
long maxStaleness,
java.util.concurrent.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,
java.util.concurrent.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(java.util.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(java.util.List<TagSet> tagSetList,
long maxStaleness,
java.util.concurrent.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,
java.util.concurrent.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(java.util.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(java.util.List<TagSet> tagSetList,
long maxStaleness,
java.util.concurrent.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,
java.util.concurrent.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(java.util.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(java.util.List<TagSet> tagSetList,
long maxStaleness,
java.util.concurrent.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,
java.util.concurrent.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(java.lang.String name,
java.util.List<TagSet> tagSetList)
Creates a taggable read preference from the given read preference name and list of tag sets.
|
static TaggableReadPreference |
ReadPreference.valueOf(java.lang.String name,
java.util.List<TagSet> tagSetList,
long maxStaleness,
java.util.concurrent.TimeUnit timeUnit)
Creates a taggable read preference from the given read preference name, list of tag sets, and max allowable staleness of secondaries.
|
private static TaggableReadPreference |
ReadPreference.valueOf(java.lang.String name,
java.util.List<TagSet> tagSetList,
java.lang.Long maxStaleness,
java.util.concurrent.TimeUnit timeUnit) |