Package io.netty.util.test
Class LeakPresenceExtension.WithTransferableScope<T>
- java.lang.Object
-
- io.netty.util.ResourceLeakDetector<T>
-
- io.netty.util.LeakPresenceDetector<T>
-
- io.netty.util.test.LeakPresenceExtension.WithTransferableScope<T>
-
- Enclosing class:
- LeakPresenceExtension
public static final class LeakPresenceExtension.WithTransferableScope<T> extends LeakPresenceDetector<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.util.LeakPresenceDetector
LeakPresenceDetector.ResourceScope
-
Nested classes/interfaces inherited from class io.netty.util.ResourceLeakDetector
ResourceLeakDetector.LeakListener, ResourceLeakDetector.Level
-
-
Constructor Summary
Constructors Constructor Description WithTransferableScope(java.lang.Class<?> resourceType, int samplingInterval)
WithTransferableScope(java.lang.Class<?> resourceType, int samplingInterval, long maxActive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LeakPresenceDetector.ResourceScope
currentScope()
Get the resource scope for the current thread.-
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
-
-
-
-
Method Detail
-
currentScope
protected LeakPresenceDetector.ResourceScope currentScope()
Description copied from class:LeakPresenceDetector
Get the resource scope for the current thread. This is used to assign resources to scopes, and it is used byLeakPresenceDetector.check()
to tell which scope to check for open resources. By default, the global scope is returned.- Overrides:
currentScope
in classLeakPresenceDetector<T>
- Returns:
- The resource scope to use
-
-