public class ChainContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
getKeyPrefix(String sourceName)
gets the key prefix of the current thread variable
|
static RequestContext |
getThreadLocalContext(String name)
Gets a cache of thread variables with the specified name
|
static void |
remove()
clear thread variable
|
static void |
remove(String name)
remove specified cache
|
static void |
setKeyPrefix(String sourceName,
String keyPrefix)
add presets for thread variables
|
public static RequestContext getThreadLocalContext(String name)
name - nameIllegalArgumentException - Throw an exception when the thread variable exceeds the maximum sizepublic static void remove()
public static void remove(String name)
name - namepublic static void setKeyPrefix(String sourceName, String keyPrefix)
RequestContext.get(String, Class) RequestContext.save(String, Object) RequestContext.remove(String)
sourceName - source namekeyPrefix - prefixCopyright © 2025. All rights reserved.