Package javax.ws.rs.client
Interface RxInvokerProvider<T extends RxInvoker>
-
- Type Parameters:
T
-RxInvoker
subclass type.
public interface RxInvokerProvider<T extends RxInvoker>
RxInvoker
provider.RxInvokerProvider
must be registered in the client runtime usingConfigurable.register(Class)
. It provides a way to plug-in support for other reactive implementations, seeInvocation.Builder.rx(Class)
.- Since:
- 2.1
- Author:
- Pavel Bucek, Santiago Pericas-Geertsen
-
-
Method Summary
Modifier and Type Method Description T
getRxInvoker(SyncInvoker syncInvoker, ExecutorService executorService)
GetRxInvoker
implementation instance.boolean
isProviderFor(Class<?> clazz)
Determine if this is a provider for the givenRxInvoker
subclass.
-
-
-
Method Detail
-
isProviderFor
boolean isProviderFor(Class<?> clazz)
Determine if this is a provider for the givenRxInvoker
subclass.- Parameters:
clazz
-RxInvoker
subclass.- Returns:
true
when this provider provides givenRxInvoker
subclass,false
otherwise.
-
getRxInvoker
T getRxInvoker(SyncInvoker syncInvoker, ExecutorService executorService)
GetRxInvoker
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 benull
; in that case it's up to the implementation to choose the bestExecutorService
in given environment.- Returns:
- instance of the
RxInvoker
subclass. - See Also:
ClientBuilder.executorService(ExecutorService)
-
-