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 |
monitor(long timeout,
java.lang.Object obj,
AllocationListener listener)
The listener MUST not have any reference to obj.
|
void |
setCheckInterval(long checkInterval) |
void |
setDisabled(boolean disabled) |
void |
setExpired(long expired) |
public void monitor(long timeout,
java.lang.Object obj,
AllocationListener listener)
timeout - timeout periodobj - 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)
protected void checkGCThread()