public interface CloseTracked<T extends CloseTracked<T>>
Includes preserving the context of the call stack which created an object, and the instant it was created.
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
getAllocationContextStackTrace()
This returns the allocation context as
StackTraceElement s. |
CloseTracked<T> |
getRealCloseTracked() |
@Nullable StackTraceElement[] getAllocationContextStackTrace()
StackTraceElement
s. NB that
this is a relatively EXPENSIVE operation! You should only ever call
this when you really need to, e.g. when you actually produce output for
humans, but not too early.CloseTracked<T> getRealCloseTracked()
Copyright © 2019 OpenDaylight. All rights reserved.