public final class FlowAdapters extends Object
Flow
API.Modifier and Type | Method | Description |
---|---|---|
static <T,U> Flow.Processor<T,U> |
toFlowProcessor(org.reactivestreams.Processor<? super T,? extends U> reactiveStreamsProcessor) |
Converts a Reactive Streams Processor into a Flow Processor.
|
static <T> Flow.Publisher<T> |
toFlowPublisher(org.reactivestreams.Publisher<? extends T> reactiveStreamsPublisher) |
Converts a Reactive Streams Publisher into a Flow Publisher.
|
static <T> Flow.Subscriber<T> |
toFlowSubscriber(org.reactivestreams.Subscriber<T> reactiveStreamsSubscriber) |
Converts a Reactive Streams Subscriber into a Flow Subscriber.
|
static <T,U> org.reactivestreams.Processor<T,U> |
toProcessor(Flow.Processor<? super T,? extends U> flowProcessor) |
Converts a Flow Processor into a Reactive Streams Processor.
|
static <T> org.reactivestreams.Publisher<T> |
toPublisher(Flow.Publisher<? extends T> flowPublisher) |
Converts a Flow Publisher into a Reactive Streams Publisher.
|
static <T> org.reactivestreams.Subscriber<T> |
toSubscriber(Flow.Subscriber<T> flowSubscriber) |
Converts a Flow Subscriber into a Reactive Streams Subscriber.
|
public static <T> org.reactivestreams.Publisher<T> toPublisher(Flow.Publisher<? extends T> flowPublisher)
T
- the element typeflowPublisher
- the source Flow Publisher to convertpublic static <T> Flow.Publisher<T> toFlowPublisher(org.reactivestreams.Publisher<? extends T> reactiveStreamsPublisher)
T
- the element typereactiveStreamsPublisher
- the source Reactive Streams Publisher to convertpublic static <T,U> org.reactivestreams.Processor<T,U> toProcessor(Flow.Processor<? super T,? extends U> flowProcessor)
T
- the input value typeU
- the output value typeflowProcessor
- the source Flow Processor to convertpublic static <T,U> Flow.Processor<T,U> toFlowProcessor(org.reactivestreams.Processor<? super T,? extends U> reactiveStreamsProcessor)
T
- the input value typeU
- the output value typereactiveStreamsProcessor
- the source Reactive Streams Processor to convertpublic static <T> Flow.Subscriber<T> toFlowSubscriber(org.reactivestreams.Subscriber<T> reactiveStreamsSubscriber)
T
- the input and output value typereactiveStreamsSubscriber
- the Reactive Streams Subscriber instance to convertpublic static <T> org.reactivestreams.Subscriber<T> toSubscriber(Flow.Subscriber<T> flowSubscriber)
T
- the input and output value typeflowSubscriber
- the Flow Subscriber instance to convert