Class CloseableResourceInfo


  • final class CloseableResourceInfo
    extends java.lang.Object
    Allocation information (Thread, allocation stack) for tracking disposable resources.
    • Field Detail

      • resource

        private final java.io.Closeable resource
      • allocationStack

        private final java.lang.StackTraceElement[] allocationStack
      • threadName

        private final java.lang.String threadName
    • Constructor Detail

      • CloseableResourceInfo

        public CloseableResourceInfo​(java.io.Closeable resource,
                                     LifecycleScope scope,
                                     java.lang.Thread t,
                                     java.lang.StackTraceElement[] allocationStack)
    • Method Detail

      • getResource

        public java.io.Closeable getResource()
      • getAllocationStack

        public java.lang.StackTraceElement[] getAllocationStack()
      • getThreadName

        public java.lang.String getThreadName()
        Return the allocating thread's name at the time of creating this resource info.