パッケージ org.springframework.core
クラス ReactiveAdapter
java.lang.ObjectSE
org.springframework.core.ReactiveAdapter
CompletableFuture、RxJava Observable などの非同期 / リアクティブ型との間の Reactive Streams Publisher 用アダプター。 アダプターは通常、ReactiveAdapterRegistry を介して取得されます。
- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
- コンストラクターの概要コンストラクターコンストラクター説明- ReactiveAdapter- (ReactiveTypeDescriptor descriptor, FunctionSE<ObjectSE, - Publisher<?>> toPublisherFunction, FunctionSE<Publisher<?>, - ObjectSE> fromPublisherFunction) ターゲットのリアクティブ型または非同期型を Reactive Streams パブリッシャーとの間で変換する機能を持つアダプターのコンストラクター。
- メソッドのサマリー修飾子と型メソッド説明- fromPublisher- (Publisher<?> publisher) 指定された Reactive Streams パブリッシャーから適応します。アダプターのリアクティブ型の記述子を返します。- ClassSE<?>- getDescriptor().getReactiveType()のショートカット。- boolean- getDescriptor().isMultiValue()のショートカット。- boolean- getDescriptor().isNoValue()のショートカット。- boolean- getDescriptor().supportsEmpty()のショートカット。- <T> Publisher<T>- toPublisher- (ObjectSE source) 指定されたインスタンスを Reactive Streams- Publisherに適合させます。
- コンストラクターの詳細- ReactiveAdapterpublic ReactiveAdapter- (ReactiveTypeDescriptor descriptor, FunctionSE<ObjectSE, - Publisher<?>> toPublisherFunction, FunctionSE<Publisher<?>, - ObjectSE> fromPublisherFunction) ターゲットのリアクティブ型または非同期型を Reactive Streams パブリッシャーとの間で変換する機能を持つアダプターのコンストラクター。- パラメーター:
- descriptor- リアクティブ型記述子
- toPublisherFunction- パブリッシャーへのアダプター
- fromPublisherFunction- パブリッシャーからのアダプター
 
 
- メソッドの詳細- getDescriptorアダプターのリアクティブ型の記述子を返します。
- getReactiveType- getDescriptor().getReactiveType()のショートカット。
- isMultiValuepublic boolean isMultiValue()- getDescriptor().isMultiValue()のショートカット。
- isNoValuepublic boolean isNoValue()- getDescriptor().isNoValue()のショートカット。
- supportsEmptypublic boolean supportsEmpty()- getDescriptor().supportsEmpty()のショートカット。
- toPublisher指定されたインスタンスを Reactive Streams- Publisherに適合させます。- パラメーター:
- source- 適応するソースオブジェクト。指定されたオブジェクトが- nullの場合、- ReactiveTypeDescriptor.getEmptyValue()が使用されます。
- 戻り値:
- 適応を表すパブリッシャー
 
- fromPublisher指定された Reactive Streams パブリッシャーから適応します。- パラメーター:
- publisher- 適応するパブリッシャー
- 戻り値:
- 適応パブリッシャーを表すリアクティブ型インスタンス