Uses of Class
io.smallrye.mutiny.Context
Packages that use Context
Package
Description
-
Uses of Context in io.smallrye.mutiny
Methods in io.smallrye.mutiny that return ContextModifier and TypeMethodDescriptionItemWithContext.context()Gives the context.Delete an entry for a given key, if present.static ContextContext.empty()Creates a new empty context.static ContextCreates a context by copying the entries from aMap.static ContextCreates a context from key / value pairs.Stores a value for a given key.Methods in io.smallrye.mutiny with parameters of type ContextModifier and TypeMethodDescriptionUni.awaitUsing(Context context) Awaits (blocking the caller thread) until the item or a failure is emitted by the observedUni.default CompletableFuture<T> Uni.subscribeAsCompletionStage(Context context) Shortcut forUniSubscribe.asCompletionStage(Context).Method parameters in io.smallrye.mutiny with type arguments of type ContextModifier and TypeMethodDescriptiondefault <R> Multi<R> Multi.withContext(BiFunction<Multi<T>, Context, Multi<R>> builder) Materialize the subscriberContextfor a sub-pipeline.default <R> Uni<R> Uni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) Materialize the subscriberContextfor a sub-pipeline.Constructors in io.smallrye.mutiny with parameters of type ContextModifierConstructorDescriptionItemWithContext(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 ContextModifier and TypeMethodDescriptionUniSubscribe.asCompletionStage(Context context) LikeUniSubscribe.withSubscriber(UniSubscriber)but provides aCompletableFutureto retrieve the completed item (potentiallynull) and allow chaining operations.MultiSubscribe.with(Context context, Consumer<? super Flow.Subscription> onSubscription, Consumer<? super T> onItem, Consumer<? super Throwable> onFailure, Runnable onComplete) Subscribes to theMultito start receiving the items.Subscribes to theMultito start receiving the items.Subscribes to theMultito start receiving the items.MultiSubscribe.with(Context context, Consumer<? super T> onItem, Consumer<? super Throwable> onFailure) Subscribes to theMultito start receiving the items.MultiSubscribe.with(Context context, Consumer<? super T> onItem, Consumer<? super Throwable> onFailure, Runnable onComplete) Subscribes to theMultito start receiving the items.LikeUniSubscribe.withSubscriber(UniSubscriber)with creating an artificialUniSubscribercalling theonItemwhen the item is received.UniSubscribe.with(Context context, Consumer<? super T> onItemCallback, Consumer<? super 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 ContextModifier and TypeMethodDescriptionio.smallrye.mutiny.helpers.BlockingIterable<T> MultiSubscribe.asIterable(Supplier<Context> contextSupplier) io.smallrye.mutiny.helpers.BlockingIterable<T> MultiSubscribe.asIterable(Supplier<Context> contextSupplier, int batchSize, Supplier<Queue<T>> queueSupplier) Consumes the upstreamMultias an iterable.MultiSubscribe.asStream(Supplier<Context> contextSupplier, int batchSize, Supplier<Queue<T>> queueSupplier) Consumes the items from the upstreamMultias a blocking stream.<T> Multi<T> Creates aMultiusingFunction.apply(Object)on the subscription-boundContext(the mapper is called at subscription time).<T> Uni<T> Creates aUniusingFunction.apply(Object)on the subscription-boundContext(the mapper is called at subscription time).Constructors in io.smallrye.mutiny.groups with parameters of type Context -
Uses of Context in io.smallrye.mutiny.helpers.test
Methods in io.smallrye.mutiny.helpers.test that return ContextMethods in io.smallrye.mutiny.helpers.test with parameters of type ContextModifier and TypeMethodDescriptionstatic <T> AssertSubscriber<T> Creates a newAssertSubscriberwith 0 requested items and no upfront cancellation.static <T> AssertSubscriber<T> Creates a newAssertSubscriberwith no upfront cancellation.static <T> UniAssertSubscriber<T> Create a newUniAssertSubscriberwith no upfront cancellation and aContext.Constructors in io.smallrye.mutiny.helpers.test with parameters of type ContextModifierConstructorDescriptionAssertSubscriber(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 ContextMethod parameters in io.smallrye.mutiny.operators with type arguments of type ContextModifier and TypeMethodDescription<R> Multi<R> AbstractMulti.withContext(BiFunction<Multi<T>, Context, Multi<R>> builder) <R> Uni<R> AbstractUni.withContext(BiFunction<Uni<T>, Context, Uni<R>> builder) -
Uses of Context in io.smallrye.mutiny.subscription
Methods in io.smallrye.mutiny.subscription that return ContextModifier and TypeMethodDescriptiondefault ContextContextSupport.context()Provide a context.MultiSubscriberAdapter.context()SafeSubscriber.context()SerializedSubscriber.context()Subscribers.CallbackBasedSubscriber.context()SwitchableSubscriptionSubscriber.context()UniDelegatingSubscriber.context()UniSerializedSubscriber.context()Methods in io.smallrye.mutiny.subscription with parameters of type ContextModifier and TypeMethodDescriptionstatic <T> CancellableSubscriber<T> Subscribers.from(Context context, Consumer<? super T> onItem, Consumer<? super Throwable> onFailure, Runnable onCompletion, Consumer<? super Flow.Subscription> onSubscription) Constructors in io.smallrye.mutiny.subscription with parameters of type ContextModifierConstructorDescriptionCallbackBasedSubscriber(Context context, Consumer<? super T> onItem, Consumer<? super Throwable> onFailure, Runnable onCompletion, Consumer<? super Flow.Subscription> onSubscription)