Package com.mongodb
Class ReadPreferenceHedgeOptions
java.lang.Object
com.mongodb.ReadPreferenceHedgeOptions
Deprecated.
As of MongoDB 8.1, the server ignores the option and periodically logs a warning
Options to apply to hedged reads in the server.
- Since:
- 4.1
- Since server release
- 4.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated.The builder for read preference hedge options -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated.Gets an instance of a builderboolean
Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.Gets whether hedged reads are enabled in the server.org.bson.BsonDocument
Deprecated.Convert the hedge options to a BsonDocument.toString()
Deprecated.
-
Method Details
-
isEnabled
public boolean isEnabled()Deprecated.Gets whether hedged reads are enabled in the server.- Returns:
- true if hedged reads are enabled in the server
-
builder
Deprecated.Gets an instance of a builder- Returns:
- a builder instance
-
toBsonDocument
public org.bson.BsonDocument toBsonDocument()Deprecated.Convert the hedge options to a BsonDocument.- Returns:
- a BsonDocument containing the hedge options
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-