public interface ReadPreferenceAware
ReadPreference
.
Typically implemented by cursor or query preparer objects.
Modifier and Type | Method and Description |
---|---|
com.mongodb.ReadPreference |
getReadPreference() |
default boolean |
hasReadPreference() |
default boolean hasReadPreference()
ReadPreference
is set.@Nullable com.mongodb.ReadPreference getReadPreference()
ReadPreference
to apply or null if none set.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.