Package io.smallrye.mutiny.context
Class ContextPropagationUniInterceptor
- java.lang.Object
-
- io.smallrye.mutiny.context.ContextPropagationUniInterceptor
-
- All Implemented Interfaces:
UniInterceptor
- Direct Known Subclasses:
DefaultContextPropagationUniInterceptor
public abstract class ContextPropagationUniInterceptor extends java.lang.Object implements UniInterceptor
Provides context propagation to Uni types. Subclasses need to override this to provide the Context Propagation ThreadContext.
-
-
Field Summary
-
Fields inherited from interface io.smallrye.mutiny.infrastructure.UniInterceptor
DEFAULT_ORDINAL
-
-
Constructor Summary
Constructors Constructor Description ContextPropagationUniInterceptor()
-
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> UniSubscriber<? super T>onSubscription(Uni<T> instance, UniSubscriber<? super T> subscriber)<T> Uni<T>onUniCreation(Uni<T> uni)-
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.UniInterceptor
ordinal
-
-
-
-
Method Detail
-
onSubscription
public <T> UniSubscriber<? super T> onSubscription(Uni<T> instance, UniSubscriber<? super T> subscriber)
- Specified by:
onSubscriptionin interfaceUniInterceptor
-
onUniCreation
public <T> Uni<T> onUniCreation(Uni<T> uni)
- Specified by:
onUniCreationin interfaceUniInterceptor
-
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:
DefaultContextPropagationUniInterceptor.getThreadContext()
-
-