public class HeapUsageMonitor
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
HeapUsageMonitor(int heapPercentageThreshold,
overflowdb.HeapUsageMonitor.HeapNotificationListener notificationListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
installGCMonitoring(float heapUsageThreshold,
overflowdb.HeapUsageMonitor.HeapNotificationListener notificationListener)
monitor GC, and should the heap grow above 80% usage, clear some strong references
|
public HeapUsageMonitor(int heapPercentageThreshold,
overflowdb.HeapUsageMonitor.HeapNotificationListener notificationListener)
protected void installGCMonitoring(float heapUsageThreshold,
overflowdb.HeapUsageMonitor.HeapNotificationListener notificationListener)
heapUsageThreshold - range 0.0 - 1.0public void close()
close in interface java.lang.AutoCloseable