public interface GCMonitor
GCMonitor instance are used to monitor garbage collection.
Instances of GCMonitor are registered to the Whiteboard
to receive notifications regarding garbage collection.| Modifier and Type | Interface and Description |
|---|---|
static class |
GCMonitor.Empty |
| Modifier and Type | Method and Description |
|---|---|
void |
cleaned(long reclaimedSize,
long currentSize)
The cleanup phase of the garbage collection process terminated successfully.
|
void |
compacted()
The compaction phase of the garbage collection process terminated successfully.
|
void |
error(String message,
Exception exception)
An error caused the garbage collection process to terminate prematurely.
|
void |
info(String message,
Object... arguments)
Informal notification on the progress of garbage collection.
|
void |
skipped(String reason,
Object... arguments)
A garbage collection cycle is skipped for a specific
reason. |
void |
updateStatus(String status)
The garbage collection entered a new phase e.g.
|
void |
warn(String message,
Object... arguments)
Warning about a condition that might have adverse effects on the overall
garbage collection process but does not prevent the process from running.
|
static final GCMonitor EMPTY
void info(String message, Object... arguments)
message - The message with {} place holders for the argumentsarguments - void warn(String message, Object... arguments)
message - The message with {} place holders for the argumentsarguments - void error(String message, Exception exception)
message - exception - void skipped(String reason, Object... arguments)
reason.reason - The reason with {} place holders for the argumentsarguments - void compacted()
void cleaned(long reclaimedSize,
long currentSize)
reclaimedSize - number of bytes reclaimedcurrentSize - number of bytes after garbage collectionvoid updateStatus(String status)
status - short summary of the GC phaseCopyright © 2010 - 2020 Adobe. All Rights Reserved