mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
36 lines
897 B
Java
36 lines
897 B
Java
package io.sentry;
|
|
|
|
import java.util.Map;
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class SentrySpanStorage {
|
|
private static volatile SentrySpanStorage INSTANCE;
|
|
private final Map<String, ISpan> spans = new ConcurrentHashMap();
|
|
|
|
public static SentrySpanStorage getInstance() {
|
|
if (INSTANCE == null) {
|
|
synchronized (SentrySpanStorage.class) {
|
|
if (INSTANCE == null) {
|
|
INSTANCE = new SentrySpanStorage();
|
|
}
|
|
}
|
|
}
|
|
return INSTANCE;
|
|
}
|
|
|
|
private SentrySpanStorage() {
|
|
}
|
|
|
|
public void store(String str, ISpan iSpan) {
|
|
this.spans.put(str, iSpan);
|
|
}
|
|
|
|
public ISpan get(String str) {
|
|
return this.spans.get(str);
|
|
}
|
|
|
|
public ISpan removeAndGet(String str) {
|
|
return this.spans.remove(str);
|
|
}
|
|
}
|