Class AutoCloseableWithLeakDetectionBase
java.lang.Object
org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableBase
org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableWithLeakDetectionBase
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ChannelBase
,SliceAccessorImpl
A base implementation of AutoClosable that helps detecting resource leaks.
Creation of an instance of this class captures a snapshot of the stack trace.
If finalize is called (typically only by the GC) and there was no prior call to close then
a warning including the stack trace is logged.
Implementing classes should override
AutoCloseableBase.closeActual()
rather than
AutoCloseableBase.close()
.-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.jena.sparql.service.enhancer.impl.util.AutoCloseableBase
close
-
Constructor Details
-
AutoCloseableWithLeakDetectionBase
public AutoCloseableWithLeakDetectionBase()
-
-
Method Details
-
getInstantiationStackTrace
-