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 LeakPresenceDetector
LeakPresenceDetector.AllocationProhibitedException, LeakPresenceDetector.ResourceScopeNested classes/interfaces inherited from class ResourceLeakDetector
ResourceLeakDetector.LeakListener, ResourceLeakDetector.Level -
Constructor Summary
ConstructorsConstructorDescriptionWithTransferableScope(Class<?> resourceType, int samplingInterval) WithTransferableScope(Class<?> resourceType, int samplingInterval, long maxActive) -
Method Summary
Modifier and TypeMethodDescriptionprotected LeakPresenceDetector.ResourceScopeGet the resource scope for the current thread.Methods inherited from class LeakPresenceDetector
check, isRecordEnabled, staticInitializer, track, trackForciblyMethods inherited from class ResourceLeakDetector
addExclusions, getInitialHint, getLevel, isEnabled, needReport, open, reportInstancesLeak, reportTracedLeak, reportUntracedLeak, setEnabled, setLeakListener, setLevel
-
Constructor Details
-
WithTransferableScope
-
WithTransferableScope
-
-
Method Details
-
currentScope
protected LeakPresenceDetector.ResourceScope currentScope() throws LeakPresenceDetector.AllocationProhibitedExceptionDescription copied from class:LeakPresenceDetectorGet 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:
currentScopein classLeakPresenceDetector<T>- Returns:
- The resource scope to use
- Throws:
LeakPresenceDetector.AllocationProhibitedException
-