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 Type
    Method
    Description
    com.mongodb.ReadConcern
     
    default boolean
     
  • Method Details

    • hasReadConcern

      default boolean hasReadConcern()
      Returns:
      true if a ReadConcern is set.
    • getReadConcern

      @Nullable com.mongodb.ReadConcern getReadConcern()
      Returns:
      the ReadConcern to apply or null if none set.