public class DataSourceKey extends Object
private static ThreadLocal<String>
keyThreadLocal
DataSourceKey()
static void
clear()
static String
get()
use(String dataSourceKey)
use(String dataSourceKey, Runnable runnable)
static <T> T
use(String dataSourceKey, Supplier<T> supplier)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static ThreadLocal<String> keyThreadLocal
public DataSourceKey()
public static void use(String dataSourceKey)
public static <T> T use(String dataSourceKey, Supplier<T> supplier)
public static void use(String dataSourceKey, Runnable runnable)
public static void clear()
public static String get()
Copyright © 2023. All rights reserved.