Package io.smallrye.mutiny.context
Class ContextPropagationMultiInterceptor
- java.lang.Object
-
- io.smallrye.mutiny.context.ContextPropagationMultiInterceptor
-
- All Implemented Interfaces:
MultiInterceptor
- Direct Known Subclasses:
DefaultContextPropagationMultiInterceptor
public abstract class ContextPropagationMultiInterceptor extends java.lang.Object implements MultiInterceptor
Provides context propagation to Multi types. Subclasses need to override this to provide the Context Propagation ThreadContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextPropagationMultiInterceptor.ContextPropagationSubscriber<T>
-
Field Summary
-
Fields inherited from interface io.smallrye.mutiny.infrastructure.MultiInterceptor
DEFAULT_ORDINAL
-
-
Constructor Summary
Constructors Constructor Description ContextPropagationMultiInterceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.microprofile.context.ThreadContextgetThreadContext()Gets the Context Propagation ThreadContext.<T> Multi<T>onMultiCreation(Multi<T> multi)<T> org.reactivestreams.Subscriber<? super T>onSubscription(org.reactivestreams.Publisher<? extends T> instance, org.reactivestreams.Subscriber<? super T> subscriber)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.mutiny.infrastructure.MultiInterceptor
ordinal
-
-
-
-
Method Detail
-
onSubscription
public <T> org.reactivestreams.Subscriber<? super T> onSubscription(org.reactivestreams.Publisher<? extends T> instance, org.reactivestreams.Subscriber<? super T> subscriber)- Specified by:
onSubscriptionin interfaceMultiInterceptor
-
onMultiCreation
public <T> Multi<T> onMultiCreation(Multi<T> multi)
- Specified by:
onMultiCreationin interfaceMultiInterceptor
-
getThreadContext
protected abstract org.eclipse.microprofile.context.ThreadContext getThreadContext()
Gets the Context Propagation ThreadContext. External implementations may implement this method.- Returns:
- the ThreadContext
- See Also:
DefaultContextPropagationMultiInterceptor.getThreadContext()
-
-