Interface ReadConcernAware
- All Known Subinterfaces:
MongoTransactionOptions
- All Known Implementing Classes:
AggregationOptions, BasicQuery, NearQuery, Query, TextQuery
public interface ReadConcernAware
Interface to be implemented by any object that wishes to expose the
ReadConcern.
Typically implemented by cursor or query preparer objects.
- Since:
- 4.1
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.mongodb.ReadConcerndefault boolean
-
Method Details
-
hasReadConcern
default boolean hasReadConcern()- Returns:
- true if a
ReadConcernis set.
-
getReadConcern
@Nullable com.mongodb.ReadConcern getReadConcern()- Returns:
- the
ReadConcernto apply or null if none set.
-