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

org.onetwo.common.spring.rest.RestExecuteThreadLocal Maven / Gradle / Ivy

package org.onetwo.common.spring.rest;

import org.onetwo.common.apiclient.RequestContextData;
import org.springframework.core.NamedThreadLocal;

/**
 * @author weishao zeng
 * 
*/ abstract public class RestExecuteThreadLocal { private static NamedThreadLocal contextThreadLocal = new NamedThreadLocal<>("RestExecutor Context"); public static RequestContextData get() { return contextThreadLocal.get(); } public static void set(RequestContextData ctx) { contextThreadLocal.set(ctx); } public static void remove() { contextThreadLocal.remove(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy