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>
A
PersistentThreadLocal
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
ConstructorDescriptionDelegatePersistentThreadLocal
(int numThreads, Supplier<? extends T> initialValue) DelegatePersistentThreadLocal
(Supplier<? extends T> initialValue) -
Method Summary
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
-
Constructor Details
-
DelegatePersistentThreadLocal
-
DelegatePersistentThreadLocal
-
-
Method Details
-
remove
-
removeAll
-