Class CloseableResourceInfo
java.lang.Object
com.carrotsearch.randomizedtesting.CloseableResourceInfo
Allocation information (Thread, allocation stack) for tracking disposable
resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StackTraceElement[]
private final Closeable
private final LifecycleScope
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionCloseableResourceInfo
(Closeable resource, LifecycleScope scope, Thread t, StackTraceElement[] allocationStack) -
Method Summary
Modifier and TypeMethodDescriptiongetScope()
Return the allocating thread's name at the time of creating this resource info.
-
Field Details
-
resource
-
scope
-
allocationStack
-
threadName
-
-
Constructor Details
-
CloseableResourceInfo
public CloseableResourceInfo(Closeable resource, LifecycleScope scope, Thread t, StackTraceElement[] allocationStack)
-
-
Method Details
-
getResource
-
getAllocationStack
-
getScope
-
getThreadName
Return the allocating thread's name at the time of creating this resource info.
-