Interface QueryDataEncoder.EncoderSelector

All Known Implementing Classes:
PreferredQueryDataEncoderSelector
Enclosing interface:
QueryDataEncoder
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface QueryDataEncoder.EncoderSelector
Responsible for choosing a QueryDataEncoder.Factory based on the client-provider supported encodings. Encoding that will be used is resolved one time during session creation.

Returning Optional.empty() fallbacks to the previous, direct protocol.