-
public interface AdaptersToFlow
Adapters from Reactive Streams types toFlow
types.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T,R>
java.util.concurrent.Flow.Processor<T,R>processor(org.reactivestreams.Processor<T,R> processor)
Convert aProcessor
to aFlow.Processor
.static <T> java.util.concurrent.Flow.Publisher<T>
publisher(org.reactivestreams.Publisher<T> publisher)
Convert aPublisher
to aFlow.Publisher
.static <T> java.util.concurrent.Flow.Subscriber<T>
subscriber(org.reactivestreams.Subscriber<T> subscriber)
Convert aSubscriber
to aFlow.Subscriber
.static java.util.concurrent.Flow.Subscription
subscription(org.reactivestreams.Subscription subscription)
Convert aSubscription
to aFlow.Subscription
.
-
-
-
Method Detail
-
publisher
static <T> java.util.concurrent.Flow.Publisher<T> publisher(org.reactivestreams.Publisher<T> publisher)
Convert aPublisher
to aFlow.Publisher
.- Type Parameters:
T
- the items type- Parameters:
publisher
- the publisher- Returns:
- the wrapped publisher
-
subscriber
static <T> java.util.concurrent.Flow.Subscriber<T> subscriber(org.reactivestreams.Subscriber<T> subscriber)
Convert aSubscriber
to aFlow.Subscriber
.- Type Parameters:
T
- the items type- Parameters:
subscriber
- the subscriber- Returns:
- the wrapped subscriber
-
subscription
static java.util.concurrent.Flow.Subscription subscription(org.reactivestreams.Subscription subscription)
Convert aSubscription
to aFlow.Subscription
.- Parameters:
subscription
- the subscription- Returns:
- the wrapped subscription
-
processor
static <T,R> java.util.concurrent.Flow.Processor<T,R> processor(org.reactivestreams.Processor<T,R> processor)
Convert aProcessor
to aFlow.Processor
.- Type Parameters:
T
- the items typeR
- the output items type- Parameters:
processor
- the processor- Returns:
- the wrapped processor
-
-