Uses of Interface
io.helidon.common.reactive.Subscribable
Package
Description
HTTP APIs and implementations usable by both server and client side of the HTTP story.
Common reactive library for Helidon projects.
Reactive Database API for Helidon.
Helidon DB integration for reactive mongoDB.
Common classes for processing content with a specific
MediaType
.-
Uses of Subscribable in io.helidon.common.http
-
Uses of Subscribable in io.helidon.common.reactive
Modifier and TypeInterfaceDescriptioninterface
Multi<T>
Represents aFlow.Publisher
emitting zero or more items, optionally followed by an error or completion.interface
Single<T>
Represents aFlow.Publisher
that may: signal one item then completes, complete without an item or signal an error.Modifier and TypeClassDescriptionclass
Single as CompletionStage.final class
Concat streams to one.class
Deprecated, for removal: This API element is subject to removal in a future version.please useOutputStreamMulti
insteadfinal class
Intercept the calls to the various Flow interface methods and calls the appropriate user callbacks.class
Output stream thatFlow.Publisher
publishes any data written to it asByteBuffer
events.Modifier and TypeMethodDescriptionSubscribable.defaultIfEmpty
(Supplier<? extends T> supplier) Signals the default item supplied by specified supplier if the upstream is empty.Subscribable.defaultIfEmpty
(T defaultItem) Signals the default item if the upstream is empty.<U> Subscribable<U>
Subscribable.flatMap
(Function<? super T, ? extends Flow.Publisher<? extends U>> mapper) Transform item with supplied function and flatten resultingFlow.Publisher
to downstream.<U> Subscribable<U>
Subscribable.flatMapIterable
(Function<? super T, ? extends Iterable<? extends U>> mapper) Transform item with supplied function and flatten resultingIterable
to downstream.<U> Subscribable<U>
Re-emit the upstream's signals to the downstream on the given executor's thread.Executes givenRunnable
when a cancel signal is received.Subscribable.onComplete
(Runnable onComplete) Executes givenRunnable
when onComplete signal is received.Subscribable.onCompleteResume
(T item) Resume stream from single item if onComplete signal is intercepted.Subscribable.onCompleteResumeWith
(Flow.Publisher<? extends T> publisher) Resume stream from supplied publisher if onComplete signal is intercepted.Executes givenRunnable
when onError signal is received.Subscribable.onErrorResume
(Function<? super Throwable, ? extends T> onError) Function
providing one item to be submitted as onNext in case of onError signal is received.Subscribable.onErrorResumeWith
(Function<? super Throwable, ? extends Flow.Publisher<? extends T>> onError) Resume stream from supplied publisher if onError signal is intercepted.Subscribable.onTerminate
(Runnable onTerminate) Executes givenRunnable
when any of signals onComplete, onCancel or onError is received.Invoke provided consumer for every item in stream.Subscribable.retry
(long count) Retry a failing upstream at most the given number of times before giving up.Subscribable.retry
(BiPredicate<? super Throwable, ? super Long> predicate) Retry a failing upstream if the predicate returns true.<U> Subscribable<T>
Subscribable.retryWhen
(BiFunction<? super Throwable, ? super Long, ? extends Flow.Publisher<U>> whenFunction) Retry a failing upstream when the given function returns a publisher that signals an item.<U> Subscribable<T>
Subscribable.takeUntil
(Flow.Publisher<U> other) Relay upstream items until the other source signals an item or completes.Subscribable.timeout
(long timeout, TimeUnit unit, ScheduledExecutorService executor) Signals aTimeoutException
if the upstream doesn't signal the next item, error or completion within the specified time. -
Uses of Subscribable in io.helidon.dbclient
Modifier and TypeMethodDescription<U,
T extends Subscribable<U>>
TExecute database statement.<U,
T extends Subscribable<U>>
TDbClient.inTransaction
(Function<DbTransaction, T> executor) Execute database statements in transaction. -
Uses of Subscribable in io.helidon.dbclient.mongodb
Modifier and TypeMethodDescription<U,
T extends Subscribable<U>>
T<U,
T extends Subscribable<U>>
TMongoDbClient.inTransaction
(Function<DbTransaction, T> executor) -
Uses of Subscribable in io.helidon.media.common
io.helidon.media.common.MessageBodyReadableContent
instead