Uses of Class
io.smallrye.mutiny.Context
-
-
Uses of Context in io.smallrye.mutiny
Methods in io.smallrye.mutiny that return Context Modifier and Type Method Description Context
ItemWithContext. context()
Gives the context.Context
Context. delete(java.lang.String key)
Delete an entry for a given key, if present.static Context
Context. empty()
Creates a new empty context.static Context
Context. from(java.util.Map<java.lang.String,?> entries)
Creates a context by copying the entries from aMap
.static Context
Context. of(java.lang.Object... entries)
Creates a context from key / value pairs.Context
Context. put(java.lang.String key, java.lang.Object value)
Stores a value for a given key.Methods in io.smallrye.mutiny with parameters of type Context Modifier and Type Method Description default UniAwait<T>
Uni. awaitUsing(Context context)
Awaits (blocking the caller thread) until the item or a failure is emitted by the observedUni
.default java.util.concurrent.CompletableFuture<T>
Uni. subscribeAsCompletionStage(Context context)
Shortcut forUniSubscribe.asCompletionStage(Context)
.Method parameters in io.smallrye.mutiny with type arguments of type Context Modifier and Type Method Description default <R> Multi<R>
Multi. withContext(java.util.function.BiFunction<Multi<T>,Context,Multi<R>> builder)
Materialize the subscriberContext
for a sub-pipeline.default <R> Uni<R>
Uni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
Materialize the subscriberContext
for a sub-pipeline.Constructors in io.smallrye.mutiny with parameters of type Context Constructor Description ItemWithContext(Context context, T item)
Creates a new item with a context. -
Uses of Context in io.smallrye.mutiny.groups
Methods in io.smallrye.mutiny.groups with parameters of type Context Modifier and Type Method Description java.util.concurrent.CompletableFuture<T>
UniSubscribe. asCompletionStage(Context context)
LikeUniSubscribe.withSubscriber(UniSubscriber)
but provides aCompletableFuture
to retrieve the completed item (potentiallynull
) and allow chaining operations.Cancellable
MultiSubscribe. with(Context context, java.util.function.Consumer<? super org.reactivestreams.Subscription> onSubscription, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure, java.lang.Runnable onComplete)
Subscribes to theMulti
to start receiving the items.Cancellable
MultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem)
Subscribes to theMulti
to start receiving the items.Cancellable
MultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem, java.lang.Runnable onComplete)
Subscribes to theMulti
to start receiving the items.Cancellable
MultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure)
Subscribes to theMulti
to start receiving the items.Cancellable
MultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure, java.lang.Runnable onComplete)
Subscribes to theMulti
to start receiving the items.Cancellable
UniSubscribe. with(Context context, java.util.function.Consumer<? super T> onItemCallback)
LikeUniSubscribe.withSubscriber(UniSubscriber)
with creating an artificialUniSubscriber
calling theonItem
when the item is received.Cancellable
UniSubscribe. with(Context context, java.util.function.Consumer<? super T> onItemCallback, java.util.function.Consumer<? super java.lang.Throwable> onFailureCallback)
LikeUniSubscribe.withSubscriber(UniSubscriber)
with creating an artificialUniSubscriber
calling theonItem
andonFailure
callbacks when the events are received.Method parameters in io.smallrye.mutiny.groups with type arguments of type Context Modifier and Type Method Description BlockingIterable<T>
MultiSubscribe. asIterable(java.util.function.Supplier<Context> contextSupplier)
BlockingIterable<T>
MultiSubscribe. asIterable(java.util.function.Supplier<Context> contextSupplier, int batchSize, java.util.function.Supplier<java.util.Queue<T>> queueSupplier)
Consumes the upstreamMulti
as an iterable.java.util.stream.Stream<T>
MultiSubscribe. asStream(java.util.function.Supplier<Context> contextSupplier)
java.util.stream.Stream<T>
MultiSubscribe. asStream(java.util.function.Supplier<Context> contextSupplier, int batchSize, java.util.function.Supplier<java.util.Queue<T>> queueSupplier)
Consumes the items from the upstreamMulti
as a blocking stream.<T> Multi<T>
MultiCreate. context(java.util.function.Function<Context,Multi<? extends T>> mapper)
<T> Uni<T>
UniCreate. context(java.util.function.Function<Context,Uni<? extends T>> mapper)
Constructors in io.smallrye.mutiny.groups with parameters of type Context Constructor Description UniAwait(Uni<T> upstream, Context context)
UniAwaitOptional(Uni<T> upstream, Context context)
-
Uses of Context in io.smallrye.mutiny.helpers
Methods in io.smallrye.mutiny.helpers that return Context Modifier and Type Method Description Context
MultiEmitterProcessor. context()
Context
StrictMultiSubscriber. context()
Context
UniCallbackSubscriber. context()
Constructors in io.smallrye.mutiny.helpers with parameters of type Context Constructor Description UniCallbackSubscriber(java.util.function.Consumer<? super T> onResultCallback, java.util.function.Consumer<? super java.lang.Throwable> onFailureCallback, Context context)
Creates aUniSubscriber
consuming the item and failure of aUni
. -
Uses of Context in io.smallrye.mutiny.helpers.test
Methods in io.smallrye.mutiny.helpers.test that return Context Modifier and Type Method Description Context
AssertSubscriber. context()
Context
UniAssertSubscriber. context()
Methods in io.smallrye.mutiny.helpers.test with parameters of type Context Modifier and Type Method Description static <T> AssertSubscriber<T>
AssertSubscriber. create(Context context)
Creates a newAssertSubscriber
with 0 requested items and no upfront cancellation.static <T> AssertSubscriber<T>
AssertSubscriber. create(Context context, long requested)
Creates a newAssertSubscriber
with no upfront cancellation.static <T> UniAssertSubscriber<T>
UniAssertSubscriber. create(Context context)
Create a newUniAssertSubscriber
with no upfront cancellation and aContext
.Constructors in io.smallrye.mutiny.helpers.test with parameters of type Context Constructor Description AssertSubscriber(Context context, long requested, boolean cancelled)
Creates a newAssertSubscriber
.UniAssertSubscriber(Context context, boolean cancelled)
Create a newUniAssertSubscriber
. -
Uses of Context in io.smallrye.mutiny.operators
Methods in io.smallrye.mutiny.operators with parameters of type Context Modifier and Type Method Description UniAwait<T>
AbstractUni. awaitUsing(Context context)
Method parameters in io.smallrye.mutiny.operators with type arguments of type Context Modifier and Type Method Description <R> Multi<R>
AbstractMulti. withContext(java.util.function.BiFunction<Multi<T>,Context,Multi<R>> builder)
<R> Uni<R>
AbstractUni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)
-
Uses of Context in io.smallrye.mutiny.operators.multi
Methods in io.smallrye.mutiny.operators.multi that return Context Modifier and Type Method Description Context
MultiCacheOp. context()
Context
MultiFlatMapOp.FlatMapMainSubscriber. context()
Context
MultiOperatorProcessor. context()
Context
MultiSelectFirstUntilOtherOp.TakeUntilOtherSubscriber. context()
Constructor parameters in io.smallrye.mutiny.operators.multi with type arguments of type Context Constructor Description MultiWithContext(Multi<? extends I> upstream, java.util.function.BiFunction<Multi<I>,Context,Multi<O>> builder)
-
Uses of Context in io.smallrye.mutiny.operators.multi.builders
Methods in io.smallrye.mutiny.operators.multi.builders that return Context Modifier and Type Method Description Context
SerializedMultiEmitter. context()
Constructor parameters in io.smallrye.mutiny.operators.multi.builders with type arguments of type Context Constructor Description DeferredMultiWithContext(java.util.function.Function<Context,Multi<? extends T>> mapper)
-
Uses of Context in io.smallrye.mutiny.operators.uni
Methods in io.smallrye.mutiny.operators.uni that return Context Modifier and Type Method Description Context
UniMemoizeOp. context()
Context
UniOperatorProcessor. context()
Methods in io.smallrye.mutiny.operators.uni with parameters of type Context Modifier and Type Method Description static <T> T
UniBlockingAwait. await(Uni<T> upstream, java.time.Duration duration, Context context)
static <T> java.util.concurrent.CompletableFuture<T>
UniSubscribeToCompletionStage. subscribe(Uni<T> uni, Context context)
Constructor parameters in io.smallrye.mutiny.operators.uni with type arguments of type Context Constructor Description UniWithContext(Uni<I> upstream, java.util.function.BiFunction<Uni<I>,Context,Uni<O>> builder)
-
Uses of Context in io.smallrye.mutiny.operators.uni.builders
Methods in io.smallrye.mutiny.operators.uni.builders that return Context Modifier and Type Method Description Context
DefaultUniEmitter. context()
Constructor parameters in io.smallrye.mutiny.operators.uni.builders with type arguments of type Context Constructor Description DeferredUniWithContext(java.util.function.Function<Context,Uni<? extends T>> mapper)
-
Uses of Context in io.smallrye.mutiny.subscription
Methods in io.smallrye.mutiny.subscription that return Context Modifier and Type Method Description default Context
ContextSupport. context()
Provide a context.Context
SafeSubscriber. context()
Context
SerializedSubscriber. context()
Context
Subscribers.CallbackBasedSubscriber. context()
Context
SwitchableSubscriptionSubscriber. context()
Context
UniDelegatingSubscriber. context()
Context
UniSerializedSubscriber. context()
Methods in io.smallrye.mutiny.subscription with parameters of type Context Modifier and Type Method Description static <T> CancellableSubscriber<T>
Subscribers. from(Context context, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure, java.lang.Runnable onCompletion, java.util.function.Consumer<? super org.reactivestreams.Subscription> onSubscription)
Constructors in io.smallrye.mutiny.subscription with parameters of type Context Constructor Description CallbackBasedSubscriber(Context context, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure, java.lang.Runnable onCompletion, java.util.function.Consumer<? super org.reactivestreams.Subscription> onSubscription)
-