@ApiAudience.Public @ApiStability.Unstable public class ContextHolder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.ThreadLocal<java.util.Map<java.lang.Integer,Context>> |
threadLocal |
Constructor and Description |
---|
ContextHolder() |
Modifier and Type | Method and Description |
---|---|
static Context |
get(java.lang.Object keyObject)
Get context of
keyObject . |
static void |
set(java.lang.Object keyObject,
Context context) |
protected static final java.lang.ThreadLocal<java.util.Map<java.lang.Integer,Context>> threadLocal