Package dev.morphia.internal
Interface ReadConfigurable<T>
-
- Type Parameters:
T
- the type being defined
- All Known Implementing Classes:
AggregationOptions
,FindOptions
public interface ReadConfigurable<T>
- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.mongodb.ReadConcern
getReadConcern()
Gets the read concerncom.mongodb.ReadPreference
getReadPreference()
default <C> com.mongodb.client.MongoCollection<C>
prepare(com.mongodb.client.MongoCollection<C> collection)
T
readConcern(com.mongodb.ReadConcern readConcern)
Sets the read concern to applyT
readPreference(com.mongodb.ReadPreference readPreference)
Sets the read preference to apply
-
-
-
Method Detail
-
getReadConcern
@Nullable com.mongodb.ReadConcern getReadConcern()
Gets the read concern- Returns:
- the read concern
-
getReadPreference
@Nullable com.mongodb.ReadPreference getReadPreference()
- Returns:
- the read preference
-
prepare
default <C> com.mongodb.client.MongoCollection<C> prepare(com.mongodb.client.MongoCollection<C> collection)
-
readConcern
T readConcern(com.mongodb.ReadConcern readConcern)
Sets the read concern to apply- Parameters:
readConcern
- the read concern- Returns:
- this
-
readPreference
T readPreference(com.mongodb.ReadPreference readPreference)
Sets the read preference to apply- Parameters:
readPreference
- the read preference- Returns:
- this
-
-