パッケージ jakarta.ws.rs.client
インターフェース RxInvokerProvider<T extends RxInvoker>
- 型パラメーター:
T-RxInvokerサブクラス型。
public interface RxInvokerProvider<T extends RxInvoker>RxInvokerプロバイダー。RxInvokerProviderは、Configurable.register(Class)を使用してクライアントランタイムに登録する必要があります。これは、他のリアクティブな実装のプラグインサポートへの方法を提供します。Invocation.Builder.rx(Class)を参照してください。- 導入:
- 2.1
- 作成者:
- Pavel Bucek, Santiago Pericas-Geertsen
方法の概要
すべてのメソッド インスタンスメソッド 抽象メソッド 修飾子と型 メソッド 説明 TgetRxInvoker(SyncInvoker syncInvoker, ExecutorServiceSE executorService)RxInvoker実装インスタンスを取得します。booleanisProviderFor(ClassSE<?> clazz)これが特定のRxInvokerサブクラスのプロバイダーであるかどうかを判別します。
メソッドの詳細
isProviderFor
boolean isProviderFor(ClassSE<?> clazz)
これが特定のRxInvokerサブクラスのプロバイダーであるかどうかを判別します。- パラメーター:
clazz-RxInvokerサブクラス。- 戻り値:
- このプロバイダーが特定の
RxInvokerサブクラスを提供する場合はtrue、それ以外の場合はfalse。
getRxInvoker
T getRxInvoker(SyncInvoker syncInvoker, ExecutorServiceSE executorService)
RxInvoker実装インスタンスを取得します。返されるインスタンスはスレッドセーフである必要があります。
- パラメーター:
syncInvoker- 現在のリクエストの実行に使用されるSyncInvoker。executorService- エグゼキュータサービス。リアクティブコールバック呼び出しを実行するために使用する必要があります。nullにすることができます。その場合、特定の環境で最適なExecutorServiceを選択するのは実装次第です。- 戻り値:
RxInvokerサブクラスのインスタンス。- 関連事項:
ClientBuilder.executorService(ExecutorService)