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

com.quincy.core.ThreadLocalHolder Maven / Gradle / Ivy

The newest version!
package com.quincy.core;

import org.springframework.core.NamedThreadLocal;

public class ThreadLocalHolder {
	private static ThreadLocal accsessToken = null;

	public static void setAccsessToken(String token) {
		accsessToken = new NamedThreadLocal("accsessToken");
		accsessToken.set(token);
	}

	public static String getAccsessToken() {
		return accsessToken==null?null:accsessToken.get();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy