public class DataSourceKey extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clear() |
static void |
forceClear() |
static String |
get() |
static String |
getByAnnotation()
Deprecated.
|
static String |
getByManual()
Deprecated.
|
static String |
getShardingDsKey(String dataSource,
Object mapper,
Method method,
Object[] args) |
static void |
setAnnotationKeyThreadLocal(ThreadLocal<String> annotationKeyThreadLocal)
Deprecated.
|
static void |
setManualKeyThreadLocal(ThreadLocal<String> manualKeyThreadLocal)
Deprecated.
|
static void |
setThreadLocal(ThreadLocal<Deque<String>> threadLocal) |
static void |
use(String dataSourceKey) |
static void |
use(String dataSourceKey,
Runnable runnable) |
static <T> T |
use(String dataSourceKey,
Supplier<T> supplier) |
static void |
useWithAnnotation(String dataSourceKey)
Deprecated.
|
public static void use(String dataSourceKey)
public static String get()
public static void clear()
public static void forceClear()
public static void setThreadLocal(ThreadLocal<Deque<String>> threadLocal)
public static String getShardingDsKey(String dataSource, Object mapper, Method method, Object[] args)
@Deprecated public static String getByManual()
@Deprecated public static String getByAnnotation()
@Deprecated public static void useWithAnnotation(String dataSourceKey)
@Deprecated public static void setAnnotationKeyThreadLocal(ThreadLocal<String> annotationKeyThreadLocal)
@Deprecated public static void setManualKeyThreadLocal(ThreadLocal<String> manualKeyThreadLocal)
Copyright © 2024. All rights reserved.