| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final boolean | |
| private static final Integer | |
| private static final VarHandle | |
| pack-priv static volatile int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static VarHandle | |
| public static SafeCloseable | |
| public static void | reportLeak(LifecycleTracer
The life-cycle trace of the leaked object. tracer, String A human-readable description of the leaked object, that can be used for logging. leakedObjectDescription)Called when a leak is detected. |
| CALLBACKS | back to summary |
|---|---|
| private static final Map<Consumer<LeakInfo>, Integer> CALLBACKS | |
| ENABLED_BY_PROPERTY | back to summary |
|---|---|
| private static final boolean ENABLED_BY_PROPERTY | |
| INTEGER_ONE | back to summary |
|---|---|
| private static final Integer INTEGER_ONE | |
| LEAK_DETECTION_ENABLED_UPDATER | back to summary |
|---|---|
| private static final VarHandle LEAK_DETECTION_ENABLED_UPDATER | |
| leakDetectionEnabled | back to summary |
|---|---|
| pack-priv static volatile int leakDetectionEnabled | |
| LeakDetection | back to summary |
|---|---|
| private LeakDetection() | |
| getLeakDetectionEnabledUpdater | back to summary |
|---|---|
| private static VarHandle getLeakDetectionEnabledUpdater() throws NoSuchFieldException, IllegalAccessException | |
| onLeakDetected | back to summary |
|---|---|
| public static SafeCloseable onLeakDetected(Consumer<LeakInfo> callback) Internal API for | |
| reportLeak | back to summary |
|---|---|
| public static void reportLeak(LifecycleTracer tracer, String leakedObjectDescription) Called when a leak is detected. This method will inform all registered on-leak-detected callbacks.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements io. |
| callback | back to summary |
|---|---|
| private final Consumer<LeakInfo> callback | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| CallbackRemover | back to summary |
|---|---|
| pack-priv CallbackRemover(Consumer<LeakInfo> callback) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| Modifier and Type | Field and Description |
|---|---|
| private Collection | |
| private final String | |
| private final LifecycleTracer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private Collection | |
| public Iterator | |
| public String | objectDescription()
Implements io. |
| public Stream | stream()
Implements io. Stream of all the TracePoints in this LeakInfo.
|
| cachedTrace | back to summary |
|---|---|
| private Collection<LeakInfo. | |
| leakedObjectDescription | back to summary |
|---|---|
| private final String leakedObjectDescription | |
| tracer | back to summary |
|---|---|
| private final LifecycleTracer tracer | |
| InternalLeakInfo | back to summary |
|---|---|
| pack-priv InternalLeakInfo(LifecycleTracer tracer, String leakedObjectDescription) | |
| getTracePoints | back to summary |
|---|---|
| private Collection | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| objectDescription | back to summary |
|---|---|
| public String objectDescription() Implements io. Doc from io. A human-readable description of the object that leaked. | |
| stream | back to summary |
|---|---|
| public Stream Implements io. Doc from io. Create a
| |