*/
package org.opendaylight.controller.md.sal.trace.closetracker.impl;
-import java.time.Instant;
import javax.annotation.Nullable;
/**
- * Object which can track where it has been created, and if it has been correctly closed.
+ * Object which can track where something has been created, and if it has been correctly "closed".
*
- * <p>Includes preserving the context of the call stack which created this object, and the instant it was created.
+ * <p>Includes preserving the context of the call stack which created an object, and the instant it was created.
*
* @author Michael Vorburger.ch
*/
public interface CloseTracked<T extends CloseTracked<T>> {
- Instant getObjectCreated();
-
- @Nullable Throwable getAllocationContext();
+ @Nullable StackTraceElement[] getAllocationContextStackTrace();
+ CloseTracked<T> getRealCloseTracked();
}