io.github.anicolaspp.Hx.RequestContextInitializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HxFactory Show documentation
Show all versions of HxFactory Show documentation
Factory library to create and run Hystrix commands with simplicity
package io.github.anicolaspp.Hx;
import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext;
public interface RequestContextInitializer {
default void initializeRequestContext() {
if (!HystrixRequestContext.isCurrentThreadInitialized()) {
HystrixRequestContext.initializeContext();
}
}
}