Module mutiny.zero.flow.adapters
Package mutiny.zero.flow.adapters
Interface AdaptersToReactiveStreams
public interface AdaptersToReactiveStreams
Adapters from
Flow types to Reactive Streams types.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T,R> org.reactivestreams.Processor<T, R> processor(Flow.Processor<T, R> processor) Convert aFlow.Processorto aProcessor.static <T> org.reactivestreams.Publisher<T>publisher(Flow.Publisher<T> publisher) Convert aFlow.Publisherto aPublisher.static <T> org.reactivestreams.Subscriber<T>subscriber(Flow.Subscriber<T> subscriber) Convert aFlow.Subscriberto aSubscriber.static org.reactivestreams.Subscriptionsubscription(Flow.Subscription subscription) Convert aFlow.Subscriptionto aSubscription.
-
Method Details
-
publisher
Convert aFlow.Publisherto aPublisher.- Type Parameters:
T- the items type- Parameters:
publisher- the publisher- Returns:
- the wrapped publisher
-
subscriber
Convert aFlow.Subscriberto aSubscriber.- Type Parameters:
T- the items type- Parameters:
subscriber- the subscriber- Returns:
- the wrapped subscriber
-
subscription
Convert aFlow.Subscriptionto aSubscription.- Parameters:
subscription- the subscription- Returns:
- the wrapped subscription
-
processor
Convert aFlow.Processorto aProcessor.- Type Parameters:
T- the items typeR- the output items type- Parameters:
processor- the processor- Returns:
- the wrapped processor
-