TrackedUse
DelegatingConnection
, DelegatingResultSet
, DelegatingStatement
public class AbandonedTrace extends java.lang.Object implements TrackedUse
The JDBC Connection, Statement, and ResultSet classes extend this class.
Constructor | Description |
---|---|
AbandonedTrace() |
Creates a new AbandonedTrace without config and without doing abandoned tracing.
|
AbandonedTrace(AbandonedTrace parent) |
Constructs a new AbandonedTrace with a parent object.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
addTrace(AbandonedTrace trace) |
Adds an object to the list of objects being traced.
|
protected void |
clearTrace() |
Clears the list of objects being traced by this object.
|
long |
getLastUsed() |
Gets the last time this object was used in milliseconds.
|
protected java.util.List<AbandonedTrace> |
getTrace() |
Gets a list of objects being traced by this object.
|
protected void |
removeTrace(AbandonedTrace trace) |
Removes a child object this object is tracing.
|
protected void |
setLastUsed() |
Sets the time this object was last used to the current time in milliseconds.
|
protected void |
setLastUsed(long lastUsedMillis) |
Sets the time in milliseconds this object was last used.
|
public AbandonedTrace()
public AbandonedTrace(AbandonedTrace parent)
parent
- AbandonedTrace parent object.public long getLastUsed()
getLastUsed
in interface TrackedUse
protected void setLastUsed()
protected void setLastUsed(long lastUsedMillis)
lastUsedMillis
- time in milliseconds.protected void addTrace(AbandonedTrace trace)
trace
- AbandonedTrace object to add.protected void clearTrace()
protected java.util.List<AbandonedTrace> getTrace()
protected void removeTrace(AbandonedTrace trace)
trace
- AbandonedTrace object to remove.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.