Interface DbClientService

All Known Implementing Classes:
DbClientServiceBase, DbClientTracing
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 interface DbClientService
Services can modify the data used to execute a statement as well as react on a statement result.

Example of such services: tracing, metrics.

Order of execution of services is based on the order they are registered in a builder, or by their priority when loaded from a Java Service loader

  • Method Details

    • statement

      Statement execution to be intercepted. This method is called before the statement execution starts. If there is no need to modify the context and you do not block, return Single.just(context).
      Parameters:
      context - Context to access data needed to process an interceptor
      Returns:
      single that completes when this service is finished