Uses of Class
io.smallrye.mutiny.Context
-
Packages that use Context Package Description io.smallrye.mutiny io.smallrye.mutiny.groups io.smallrye.mutiny.helpers.test io.smallrye.mutiny.operators io.smallrye.mutiny.subscription -
-
Uses of Context in io.smallrye.mutiny
Methods in io.smallrye.mutiny that return Context Modifier and Type Method Description ContextItemWithContext. context()Gives the context.ContextContext. delete(java.lang.String key)Delete an entry for a given key, if present.static ContextContext. empty()Creates a new empty context.static ContextContext. from(java.util.Map<java.lang.String,?> entries)Creates a context by copying the entries from aMap.static ContextContext. of(java.lang.Object... entries)Creates a context from key / value pairs.ContextContext. 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 subscriberContextfor a sub-pipeline.default <R> Uni<R>Uni. withContext(java.util.function.BiFunction<Uni<T>,Context,Uni<R>> builder)Materialize the subscriberContextfor 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 aCompletableFutureto retrieve the completed item (potentiallynull) and allow chaining operations.CancellableMultiSubscribe. 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 theMultito start receiving the items.CancellableMultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem)Subscribes to theMultito start receiving the items.CancellableMultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem, java.lang.Runnable onComplete)Subscribes to theMultito start receiving the items.CancellableMultiSubscribe. with(Context context, java.util.function.Consumer<? super T> onItem, java.util.function.Consumer<? super java.lang.Throwable> onFailure)Subscribes to theMultito start receiving the items.CancellableMultiSubscribe. 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 theMultito start receiving the items.CancellableUniSubscribe. with(Context context, java.util.function.Consumer<? super T> onItemCallback)LikeUniSubscribe.withSubscriber(UniSubscriber)with creating an artificialUniSubscribercalling theonItemwhen the item is received.CancellableUniSubscribe. 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 artificialUniSubscribercalling theonItemandonFailurecallbacks when the events are received.Method parameters in io.smallrye.mutiny.groups with type arguments of type Context Modifier and Type Method Description io.smallrye.mutiny.helpers.BlockingIterable<T>MultiSubscribe. asIterable(java.util.function.Supplier<Context> contextSupplier)io.smallrye.mutiny.helpers.BlockingIterable<T>MultiSubscribe. asIterable(java.util.function.Supplier<Context> contextSupplier, int batchSize, java.util.function.Supplier<java.util.Queue<T>> queueSupplier)Consumes the upstreamMultias 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 upstreamMultias 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.test
Methods in io.smallrye.mutiny.helpers.test that return Context Modifier and Type Method Description ContextAssertSubscriber. context()ContextUniAssertSubscriber. 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 newAssertSubscriberwith 0 requested items and no upfront cancellation.static <T> AssertSubscriber<T>AssertSubscriber. create(Context context, long requested)Creates a newAssertSubscriberwith no upfront cancellation.static <T> UniAssertSubscriber<T>UniAssertSubscriber. create(Context context)Create a newUniAssertSubscriberwith 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.subscription
Methods in io.smallrye.mutiny.subscription that return Context Modifier and Type Method Description default ContextContextSupport. context()Provide a context.ContextSafeSubscriber. context()ContextSerializedSubscriber. context()ContextSubscribers.CallbackBasedSubscriber. context()ContextSwitchableSubscriptionSubscriber. context()ContextUniDelegatingSubscriber. context()ContextUniSerializedSubscriber. 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)
-