类 ReactiveAdapterRegistry.ReactorAdapter
java.lang.Object
cn.taketoday.core.ReactiveAdapter
cn.taketoday.core.ReactiveAdapterRegistry.ReactorAdapter
ReactiveAdapter variant that wraps adapted Publishers as
Flux or
Mono depending on ReactiveTypeDescriptor.isMultiValue().
This is important in places where only the stream and stream element type
information is available like encoders and decoders.-
构造器概要
构造器构造器说明ReactorAdapter(ReactiveTypeDescriptor descriptor, Function<Object, org.reactivestreams.Publisher<?>> toPublisherFunction, Function<org.reactivestreams.Publisher<?>, Object> fromPublisherFunction) -
方法概要
修饰符和类型方法说明<T> org.reactivestreams.Publisher<T>toPublisher(Object source) Adapt the given instance to a Reactive StreamsPublisher.从类继承的方法 cn.taketoday.core.ReactiveAdapter
fromPublisher, getDescriptor, getReactiveType, isMultiValue, isNoValue, supportsEmpty
-
构造器详细资料
-
ReactorAdapter
ReactorAdapter(ReactiveTypeDescriptor descriptor, Function<Object, org.reactivestreams.Publisher<?>> toPublisherFunction, Function<org.reactivestreams.Publisher<?>, Object> fromPublisherFunction)
-
-
方法详细资料
-
toPublisher
从类复制的说明:ReactiveAdapterAdapt the given instance to a Reactive StreamsPublisher.- 覆盖:
toPublisher在类中ReactiveAdapter- 参数:
source- the source object to adapt from; if the given object isnull,ReactiveTypeDescriptor.getEmptyValue()is used.- 返回:
- the Publisher representing the adaptation
-