Class StrictContextStorage.PendingScopes
java.lang.Object
java.lang.ref.ReferenceQueue<Scope>
io.opentelemetry.context.internal.shaded.AbstractWeakConcurrentMap<Scope, StrictContextStorage.CallerStackTrace, WeakConcurrentMap.LookupKey<Scope>>
io.opentelemetry.context.internal.shaded.WeakConcurrentMap<Scope, StrictContextStorage.CallerStackTrace>
io.opentelemetry.context.StrictContextStorage.PendingScopes
- All Implemented Interfaces:
Iterable<Map.Entry<Scope, StrictContextStorage.CallerStackTrace>>, Runnable
- Enclosing class:
StrictContextStorage
static class StrictContextStorage.PendingScopes
extends WeakConcurrentMap<Scope, StrictContextStorage.CallerStackTrace>
-
Nested Class Summary
Nested classes/interfaces inherited from class WeakConcurrentMap
WeakConcurrentMap.WithInlinedExpunction<K,V> Nested classes/interfaces inherited from class AbstractWeakConcurrentMap
AbstractWeakConcurrentMap.WeakKey<K> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentHashMap<AbstractWeakConcurrentMap.WeakKey<Scope>, StrictContextStorage.CallerStackTrace> -
Constructor Summary
ConstructorsConstructorDescriptionPendingScopes(ConcurrentHashMap<AbstractWeakConcurrentMap.WeakKey<Scope>, StrictContextStorage.CallerStackTrace> map) -
Method Summary
Modifier and TypeMethodDescription(package private) static StrictContextStorage.PendingScopescreate()(package private) List<StrictContextStorage.CallerStackTrace> voidrun()Methods inherited from class WeakConcurrentMap
getCleanerThread, getLookupKey, resetLookupKeyMethods inherited from class AbstractWeakConcurrentMap
approximateSize, clear, containsKey, defaultValue, expungeStaleEntries, get, getIfPresent, iterator, put, putIfAbsent, putIfProbablyAbsent, remove, toStringMethods inherited from class ReferenceQueue
poll, remove, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
map
private final ConcurrentHashMap<AbstractWeakConcurrentMap.WeakKey<Scope>, StrictContextStorage.CallerStackTrace> map
-
-
Constructor Details
-
PendingScopes
PendingScopes(ConcurrentHashMap<AbstractWeakConcurrentMap.WeakKey<Scope>, StrictContextStorage.CallerStackTrace> map)
-
-
Method Details
-
create
-
drainPendingCallers
List<StrictContextStorage.CallerStackTrace> drainPendingCallers() -
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classAbstractWeakConcurrentMap<Scope, StrictContextStorage.CallerStackTrace, WeakConcurrentMap.LookupKey<Scope>>
-