Class LeakDetector.LeakInfo

java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.PhantomReference<T>
org.eclipse.jetty.util.LeakDetector.LeakInfo
Enclosing class:
LeakDetector<T>

public class LeakDetector.LeakInfo extends PhantomReference<T>
Information about the leak of a resource.
  • Field Details

    • id

      private final String id
    • description

      private final String description
    • stackFrames

      private final Throwable stackFrames
  • Constructor Details

    • LeakInfo

      private LeakInfo(T referent, String id)
  • Method Details

    • getResourceDescription

      public String getResourceDescription()
      Returns:
      the resource description as provided by the resource's Object.toString() method.
    • getStackFrames

      public Throwable getStackFrames()
      Returns:
      a Throwable instance that contains the stack frames at the time of resource acquisition.
    • toString

      public String toString()
      Overrides:
      toString in class Object