public class AbandonedTrace extends Object implements TrackedUse
Constructor and Description |
---|
AbandonedTrace()
Create a new AbandonedTrace without config and
without doing abandoned tracing.
|
AbandonedTrace(AbandonedTrace parent)
Construct a new AbandonedTrace with a parent object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTrace(AbandonedTrace trace)
Add an object to the list of objects being
traced.
|
protected void |
clearTrace()
Clear the list of objects being traced by this
object.
|
long |
getLastUsed()
Get the last time this object was used in ms.
|
protected List<AbandonedTrace> |
getTrace()
Get a list of objects being traced by this object.
|
protected void |
removeTrace(AbandonedTrace trace)
Remove a child object this object is tracing.
|
protected void |
setLastUsed()
Set the time this object was last used to the
current time in ms.
|
protected void |
setLastUsed(long time)
Set the time in ms this object was last used.
|
public AbandonedTrace()
public AbandonedTrace(AbandonedTrace parent)
parent
- AbandonedTrace parent objectpublic long getLastUsed()
getLastUsed
in interface TrackedUse
protected void setLastUsed()
protected void setLastUsed(long time)
time
- time in msprotected void addTrace(AbandonedTrace trace)
trace
- AbandonedTrace object to addprotected void clearTrace()
protected List<AbandonedTrace> getTrace()
protected void removeTrace(AbandonedTrace trace)
trace
- AbandonedTrace object to removeCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.