Interface RxInvokerProvider<T extends RxInvoker>

    • Method Detail

      • isProviderFor

        boolean isProviderFor​(java.lang.Class<?> clazz)
        Determine if this is a provider for the given RxInvoker subclass.
        Parameters:
        clazz - RxInvoker subclass.
        Returns:
        true when this provider provides given RxInvoker subclass, false otherwise.
      • getRxInvoker

        T getRxInvoker​(SyncInvoker syncInvoker,
                       java.util.concurrent.ExecutorService executorService)
        Get RxInvoker implementation instance.

        The returned instance has to be thread safe.

        Parameters:
        syncInvoker - SyncInvoker used to execute current request.
        executorService - executor service, which should be used for executing reactive callbacks invocations. It can be null; in that case it's up to the implementation to choose the best ExecutorService in given environment.
        Returns:
        instance of the RxInvoker subclass.
        See Also:
        ClientBuilder.executorService(ExecutorService)