public class GridThreadLocalEx<T> extends ThreadLocal<T>
GridThreadLocal as it inherits thread local values from the parent
GridWorker thread.| Constructor and Description |
|---|
GridThreadLocalEx() |
GridThreadLocalEx(IgniteOutClosure<T> initializer) |
| Modifier and Type | Method and Description |
|---|---|
static void |
enter()
Callback for start of thread context.
|
static void |
enter(Map<GridThreadLocalEx<?>,?> inherited)
Callback for start of thread context.
|
T |
get() |
static Map<GridThreadLocalEx<?>,?> |
inherit() |
protected T |
initialValue() |
static void |
leave()
Callback for end of thread context.
|
void |
set(T val) |
removepublic GridThreadLocalEx()
public GridThreadLocalEx(IgniteOutClosure<T> initializer)
initializer - Initializer.public static Map<GridThreadLocalEx<?>,?> inherit()
public static void enter()
public static void enter(Map<GridThreadLocalEx<?>,?> inherited)
inherited - Inherited map.public static void leave()
@Nullable protected T initialValue()
initialValue in class ThreadLocal<T>public final T get()
get in class ThreadLocal<T>public final void set(T val)
set in class ThreadLocal<T>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015