Class InstrumentedResourceLeakDetector<T>

java.lang.Object
io.netty.util.ResourceLeakDetector<T>
com.netflix.netty.common.metrics.InstrumentedResourceLeakDetector<T>

public class InstrumentedResourceLeakDetector<T> extends io.netty.util.ResourceLeakDetector<T>
Pluggable ResourceLeakDetector to track metrics for leaks Author: Arthur Gonigberg Date: September 20, 2016
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.util.ResourceLeakDetector

    io.netty.util.ResourceLeakDetector.LeakListener, io.netty.util.ResourceLeakDetector.Level
  • Constructor Summary

    Constructors
    Constructor
    Description
    InstrumentedResourceLeakDetector(Class<?> resourceType, int samplingInterval)
     
    InstrumentedResourceLeakDetector(Class<?> resourceType, int samplingInterval, long maxActive)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    reportTracedLeak(String resourceType, String records)
     
    protected void
    reportUntracedLeak(String resourceType)
     

    Methods inherited from class io.netty.util.ResourceLeakDetector

    addExclusions, getInitialHint, getLevel, isEnabled, needReport, open, reportInstancesLeak, setEnabled, setLeakListener, setLevel, track, trackForcibly

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InstrumentedResourceLeakDetector

      public InstrumentedResourceLeakDetector(Class<?> resourceType, int samplingInterval)
    • InstrumentedResourceLeakDetector

      public InstrumentedResourceLeakDetector(Class<?> resourceType, int samplingInterval, long maxActive)
  • Method Details

    • reportTracedLeak

      protected void reportTracedLeak(String resourceType, String records)
      Overrides:
      reportTracedLeak in class io.netty.util.ResourceLeakDetector<T>
    • reportUntracedLeak

      protected void reportUntracedLeak(String resourceType)
      Overrides:
      reportUntracedLeak in class io.netty.util.ResourceLeakDetector<T>