All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.faulttolerance.propagation.ContextPropagationRunnableWrapper Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
package io.smallrye.faulttolerance.propagation;

import org.eclipse.microprofile.context.ThreadContext;

import io.smallrye.faulttolerance.core.util.RunnableWrapper;

public class ContextPropagationRunnableWrapper implements RunnableWrapper {
    private final ThreadContext threadContext = ThreadContext.builder().build();

    @Override
    public Runnable wrap(Runnable runnable) {
        return threadContext.contextualRunnable(runnable);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy