withReadPreference

abstract fun withReadPreference(readPreference: ReadPreference?): PanacheQuery<Entity>

Define the read preference used for this query.

Return

this query, modified

Parameters

readPreference

the read preference to be used for this query.