public interface AdaptersToFlow
Adapters from Reactive Streams types to
Flow types.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T,R> Flow.Processor<T, R> processor(org.reactivestreams.Processor<T, R> processor) Convert aProcessorto aFlow.Processor.static <T> Flow.Publisher<T>publisher(org.reactivestreams.Publisher<T> publisher) Convert aPublisherto aFlow.Publisher.static <T> Flow.Subscriber<T>subscriber(org.reactivestreams.Subscriber<T> subscriber) Convert aSubscriberto aFlow.Subscriber.static Flow.Subscriptionsubscription(org.reactivestreams.Subscription subscription) Convert aSubscriptionto aFlow.Subscription.
-
Method Details
-
publisher
Convert aPublisherto aFlow.Publisher.- Type Parameters:
T- the items type- Parameters:
publisher- the publisher- Returns:
- the wrapped publisher
-
subscriber
Convert aSubscriberto aFlow.Subscriber.- Type Parameters:
T- the items type- Parameters:
subscriber- the subscriber- Returns:
- the wrapped subscriber
-
subscription
Convert aSubscriptionto aFlow.Subscription.- Parameters:
subscription- the subscription- Returns:
- the wrapped subscription
-
processor
Convert aProcessorto aFlow.Processor.- Type Parameters:
T- the items typeR- the output items type- Parameters:
processor- the processor- Returns:
- the wrapped processor
-