Package io.netty.util
Interface ResourceLeak
-
@Deprecated public interface ResourceLeak
Deprecated.please useResourceLeakTracker
as it may lead to false-positives.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
close()
Deprecated.Close the leak so thatResourceLeakDetector
does not warn about leaked resources.void
record()
Deprecated.Records the caller's current stack trace so that theResourceLeakDetector
can tell where the leaked resource was accessed lastly.void
record(java.lang.Object hint)
Deprecated.Records the caller's current stack trace and the specified additional arbitrary information so that theResourceLeakDetector
can tell where the leaked resource was accessed lastly.
-
-
-
Method Detail
-
record
void record()
Deprecated.Records the caller's current stack trace so that theResourceLeakDetector
can tell where the leaked resource was accessed lastly. This method is a shortcut torecord(null)
.
-
record
void record(java.lang.Object hint)
Deprecated.Records the caller's current stack trace and the specified additional arbitrary information so that theResourceLeakDetector
can tell where the leaked resource was accessed lastly.
-
close
boolean close()
Deprecated.Close the leak so thatResourceLeakDetector
does not warn about leaked resources.- Returns:
true
if called first time,false
if called already
-
-