public class AllocationMonitor
extends java.lang.Object
| Constructor and Description |
|---|
AllocationMonitor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkGCThread() |
long |
getCheckInterval() |
long |
getExpired() |
boolean |
isDisabled() |
void |
monitorDealloc(java.lang.Object obj,
DeallocationListener listener)
The listener MUST not have any reference to obj.
|
void |
monitorLeak(long timeout,
java.lang.Object obj,
LeakListener listener)
The listener MUST not have any reference to obj.
|
void |
setCheckInterval(long checkInterval) |
void |
setDisabled(boolean disabled) |
void |
setExpired(long expired) |
void |
shutdown() |
public void monitorLeak(long timeout,
java.lang.Object obj,
LeakListener listener)
timeout - timeout periodobj - the object to be monitorlistener - an AllocationListenerpublic void monitorDealloc(java.lang.Object obj,
DeallocationListener listener)
obj - the object to be monitorlistener - an AllocationListenerpublic long getCheckInterval()
public void setCheckInterval(long checkInterval)
public long getExpired()
public void setExpired(long expired)
public boolean isDisabled()
public void setDisabled(boolean disabled)
public void shutdown()
protected void checkGCThread()