Package io.micronaut.test.leak
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
ConstructorsConstructorDescriptionWithTransferableScope
(Class<?> resourceType, int samplingInterval) WithTransferableScope
(Class<?> resourceType, int samplingInterval, long maxActive) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
WithTransferableScope
-
WithTransferableScope
-
-
Method Details
-
currentScope
protected io.netty.util.LeakPresenceDetector.ResourceScope currentScope()- Overrides:
currentScope
in classio.netty.util.LeakPresenceDetector<T>
-