Package io.netty5.buffer.api
Interface LeakInfo
-
- All Superinterfaces:
Iterable<LeakInfo.TracePoint>
@UnstableApi public interface LeakInfo extends Iterable<LeakInfo.TracePoint>
Information about a resource leak that happened. This information is provided to callbacks of theMemoryManager.onLeakDetected(Consumer)method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLeakInfo.TracePointA moment in the life of the leaked object, for which some information was recorded.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringobjectDescription()A human-readable description of the object that leaked.Stream<LeakInfo.TracePoint>stream()-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
stream
Stream<LeakInfo.TracePoint> stream()
Create aStreamof all theLeakInfo.TracePoints in thisLeakInfo. The returnedStreamdoes not need to be closed.- Returns:
- A
StreamofLeakInfo.TracePoints, covering the life-cycle of the leaked resource.
-
objectDescription
String objectDescription()
A human-readable description of the object that leaked.- Returns:
- A description of the leaked object.
-
-