Package io.helidon.common.reactive
Class ReactiveStreamsAdapter
- java.lang.Object
-
- io.helidon.common.reactive.ReactiveStreamsAdapter
-
@Deprecated public final class ReactiveStreamsAdapter extends Object
Deprecated.This class will be removed in the next major release.Static utility methods for converting between Helidon reactive APIFlow
and reactive-streams.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> reactor.core.publisher.Flux<T>
publisherFromFlow(Flow.Publisher<T> publisher)
Deprecated.Return aPublisher
from aFlow.Publisher
.static <T> Flow.Publisher<T>
publisherToFlow(Publisher<T> publisher)
Deprecated.Return aFlow.Publisher
from aPublisher
.static <T> Subscriber<T>
subscriberFromFlow(Flow.Subscriber<T> subscriber)
Deprecated.Return aSubscriber
from aFlow.Subscriber
.static <T> Flow.Subscriber<T>
subscriberToFlow(Subscriber<T> subscriber)
Deprecated.Return aFlow.Subscriber
from aSubscriber
.
-
-
-
Method Detail
-
publisherToFlow
public static <T> Flow.Publisher<T> publisherToFlow(Publisher<T> publisher)
Deprecated.Return aFlow.Publisher
from aPublisher
.- Type Parameters:
T
- the type of the publisher- Parameters:
publisher
- the source Publisher to convert- Returns:
- a
Flow.Publisher
-
publisherFromFlow
public static <T> reactor.core.publisher.Flux<T> publisherFromFlow(Flow.Publisher<T> publisher)
Deprecated.Return aPublisher
from aFlow.Publisher
.- Type Parameters:
T
- the type of the publisher- Parameters:
publisher
- the source Publisher to convert- Returns:
- a
Flux
-
subscriberToFlow
public static <T> Flow.Subscriber<T> subscriberToFlow(Subscriber<T> subscriber)
Deprecated.Return aFlow.Subscriber
from aSubscriber
.- Type Parameters:
T
- the type of the subscriber- Parameters:
subscriber
- the source Subscriber to convert- Returns:
- a
Subscriber
-
subscriberFromFlow
public static <T> Subscriber<T> subscriberFromFlow(Flow.Subscriber<T> subscriber)
Deprecated.Return aSubscriber
from aFlow.Subscriber
.- Type Parameters:
T
- the type of the subscriber- Parameters:
subscriber
- the source Subscriber to convert- Returns:
- a
Flow.Subscriber
-
-