Package io.netty.util

Interface ResourceLeak

All Known Implementing Classes:
ResourceLeakDetector.DefaultResourceLeak

@Deprecated public interface ResourceLeak
Deprecated.
please use ResourceLeakTracker as it may lead to false-positives.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Close the leak so that ResourceLeakDetector does not warn about leaked resources.
    void
    Deprecated.
    Records the caller's current stack trace so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.
    void
    record(Object hint)
    Deprecated.
    Records the caller's current stack trace and the specified additional arbitrary information so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.
  • Method Details

    • record

      void record()
      Deprecated.
      Records the caller's current stack trace so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly. This method is a shortcut to record(null).
    • record

      void record(Object hint)
      Deprecated.
      Records the caller's current stack trace and the specified additional arbitrary information so that the ResourceLeakDetector can tell where the leaked resource was accessed lastly.
    • close

      boolean close()
      Deprecated.
      Close the leak so that ResourceLeakDetector does not warn about leaked resources.
      Returns:
      true if called first time, false if called already