Class DelegatePersistentThreadLocal<T extends BaseDelegate<?>>
- java.lang.Object
-
- java.lang.ThreadLocal<T>
-
- org.eclipse.epsilon.common.concurrent.PersistentThreadLocal<T>
-
- org.eclipse.epsilon.common.concurrent.DelegatePersistentThreadLocal<T>
-
- Type Parameters:
T
- The type of the thread-local value.
public class DelegatePersistentThreadLocal<T extends BaseDelegate<?>> extends PersistentThreadLocal<T>
APersistentThreadLocal
which merges its values into the base (its delegate) when a thread-local value is removed.- Since:
- 1.6
- Author:
- Sina Madani
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.common.concurrent.PersistentThreadLocal
allValues, valueGetter
-
-
Constructor Summary
Constructors Constructor Description DelegatePersistentThreadLocal(int numThreads, Supplier<? extends T> initialValue)
DelegatePersistentThreadLocal(Supplier<? extends T> initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
remove(BaseDelegate.MergeMode mode)
void
removeAll(BaseDelegate.MergeMode mode)
-
Methods inherited from class org.eclipse.epsilon.common.concurrent.PersistentThreadLocal
getAll, initialValue, remove, removeAll, set, size
-
Methods inherited from class java.lang.ThreadLocal
get, withInitial
-
-
-
-
Method Detail
-
remove
public void remove(BaseDelegate.MergeMode mode)
-
removeAll
public void removeAll(BaseDelegate.MergeMode mode)
-
-