io.quarkus.smallrye.context.runtime.SmallRyeContextPropagationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-smallrye-context-propagation Show documentation
Show all versions of quarkus-smallrye-context-propagation Show documentation
Propagate contexts between managed threads in reactive applications
package io.quarkus.smallrye.context.runtime;
import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;
import org.eclipse.microprofile.context.ThreadContext;
import io.quarkus.arc.DefaultBean;
import io.smallrye.context.SmallRyeThreadContext;
@Dependent
public class SmallRyeContextPropagationProvider {
@Produces
@Singleton
@DefaultBean
public SmallRyeThreadContext getAllThreadContext() {
// Make sure we use the default values, which use the MP Config keys to allow users to override them
return (SmallRyeThreadContext) ThreadContext.builder()
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy