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(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights)
The compaction phase of the garbage collection process terminated successfully.
|
void |
error(java.lang.String message,
java.lang.Exception exception)
An error caused the garbage collection process to terminate prematurely.
|
void |
info(java.lang.String message,
java.lang.Object... arguments)
Informal notification on the progress of garbage collection.
|
void |
skipped(java.lang.String reason,
java.lang.Object... arguments)
A garbage collection cycle is skipped for a specific
reason. |
void |
warn(java.lang.String message,
java.lang.Object... arguments)
Warning about a condition that might have advert effects on the overall
garbage collection process but does not prevent the process from running.
|
static final GCMonitor EMPTY
void info(java.lang.String message,
java.lang.Object... arguments)
message - The message with {} place holders for the argumentsarguments - void warn(java.lang.String message,
java.lang.Object... arguments)
message - The message with {} place holders for the argumentsarguments - void error(java.lang.String message,
java.lang.Exception exception)
message - exception - void skipped(java.lang.String reason,
java.lang.Object... arguments)
reason.reason - The reason with {} place holders for the argumentsarguments - void compacted(long[] segmentCounts,
long[] recordCounts,
long[] compactionMapWeights)
segmentCounts - number of segments in the individual generations of the maprecordCounts - number of records in the individual generations of the mapcompactionMapWeights - weights of the individual generations of the mapPartialCompactionMapvoid cleaned(long reclaimedSize,
long currentSize)
reclaimedSize - number of bytes reclaimedcurrentSize - number of bytes after garbage collection"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"