Top Description Methods
jakarta.ws.rs.client

public Interface RxInvokerProvider<T extends jakarta.ws.rs.client.RxInvoker<T>>

Type Parameters
<T>
RxInvoker subclass type.
Imports
java.util.concurrent.ExecutorService

RxInvoker provider.

RxInvokerProvider must be registered in the client runtime using Client#register(Class). It provides a way to plug-in support for other reactive implementations, see Invocation.Builder#rx(Class).

Authors
Pavel Bucek, Santiago Pericas-Geertsen
Since
2.1

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

instance of the RxInvoker subclass.
getRxInvoker
(SyncInvoker
SyncInvoker used to execute current request.
syncInvoker
,
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.
executorService
)

Get RxInvoker implementation instance.

public boolean

Returns:

true when this provider provides given RxInvoker subclass, false otherwise.
isProviderFor
(Class<?>
RxInvoker subclass.
clazz
)

Determine if this is a provider for the given RxInvoker subclass.

Method Detail

getRxInvokerback to summary
public T getRxInvoker(SyncInvoker syncInvoker, ExecutorService executorService)

Get RxInvoker implementation instance.

The returned instance has to be thread safe.

Parameters
syncInvoker:SyncInvoker

SyncInvoker used to execute current request.

executorService: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:T

instance of the RxInvoker subclass.

See Also
ClientBuilder#executorService(ExecutorService)
isProviderForback to summary
public boolean isProviderFor(Class<?> clazz)

Determine if this is a provider for the given RxInvoker subclass.

Parameters
clazz:Class<?>

RxInvoker subclass.

Returns:boolean

true when this provider provides given RxInvoker subclass, false otherwise.