public interface MemoryMeterListener
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MemoryMeterListener.Factory
A factory for
MemoryMeterListener. |
| Modifier and Type | Method and Description |
|---|---|
void |
arrayElementAdded(Object[] array,
int index,
Object elementValue)
Notification that the element from the specified array has been added.
|
void |
byteBufferRemainingMeasured(ByteBuffer buffer,
long size)
Notification that the size of the remaining bytes of a
ByteBuffer have been measured. |
void |
done(long size)
Notification that the entire graph has been measured.
|
void |
failedToAccessField(Object obj,
String fieldName,
Class<?> fieldType)
Notification that the graph could not be fully measured has it failed to access a field.
|
void |
fieldAdded(Object obj,
String fieldName,
Object fieldValue)
Notification that the field from the specified object has been added.
|
void |
objectMeasured(Object current,
long size)
Notification that the size of the specified object has been measured.
|
void |
started(Object obj)
Notification that
MemoryMeter as started analyzing the specified object. |
void started(Object obj)
MemoryMeter as started analyzing the specified object.obj - the object being analyzedvoid fieldAdded(Object obj, String fieldName, Object fieldValue)
obj - the object for which a field has been addedfieldName - the field namefieldValue - the field valuevoid arrayElementAdded(Object[] array, int index, Object elementValue)
array - the array for which an element has been addedindex - the element indexelementValue - the element valuevoid objectMeasured(Object current, long size)
current - the object that has been measuredsize - the object size in bytesvoid byteBufferRemainingMeasured(ByteBuffer buffer, long size)
ByteBuffer have been measured.buffer - the ByteBuffersize - the remaining bytesvoid done(long size)
size - the size of the entire graph.void failedToAccessField(Object obj, String fieldName, Class<?> fieldType)
obj - the object owning the field that could not be accessedfieldName - the field namefieldType - the field typeCopyright © 2023. All rights reserved.