Class WithTransferableScope<T>

java.lang.Object
io.netty.util.ResourceLeakDetector<T>
io.netty.util.LeakPresenceDetector<T>
io.micronaut.test.leak.WithTransferableScope<T>

@Internal public final class WithTransferableScope<T> extends io.netty.util.LeakPresenceDetector<T>
LeakPresenceDetector that uses an InheritableThreadLocal to transfer the resource scope from test methods to event loops created within those threads.
  • Nested Class Summary

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

    io.netty.util.LeakPresenceDetector.ResourceScope

    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
    WithTransferableScope(Class<?> resourceType, int samplingInterval)
     
    WithTransferableScope(Class<?> resourceType, int samplingInterval, long maxActive)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.netty.util.LeakPresenceDetector.ResourceScope
     

    Methods inherited from class io.netty.util.LeakPresenceDetector

    check, isRecordEnabled, staticInitializer, track, trackForcibly

    Methods inherited from class io.netty.util.ResourceLeakDetector

    addExclusions, getInitialHint, getLevel, isEnabled, needReport, open, reportInstancesLeak, reportTracedLeak, reportUntracedLeak, setEnabled, setLeakListener, setLevel

    Methods inherited from class java.lang.Object

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

    • WithTransferableScope

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

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

    • currentScope

      protected io.netty.util.LeakPresenceDetector.ResourceScope currentScope()
      Overrides:
      currentScope in class io.netty.util.LeakPresenceDetector<T>