Package io.prometheus.client.hotspot
Class MemoryAllocationExports.AllocationCountingNotificationListener
java.lang.Object
io.prometheus.client.hotspot.MemoryAllocationExports.AllocationCountingNotificationListener
- All Implemented Interfaces:
EventListener
,NotificationListener
- Enclosing class:
MemoryAllocationExports
static class MemoryAllocationExports.AllocationCountingNotificationListener
extends Object
implements NotificationListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static long
(package private) void
handleMemoryPool
(String memoryPool, long before, long after) void
handleNotification
(Notification notification, Object handback)
-
Field Details
-
lastMemoryUsage
-
counter
-
-
Constructor Details
-
AllocationCountingNotificationListener
AllocationCountingNotificationListener(Counter counter)
-
-
Method Details
-
handleNotification
- Specified by:
handleNotification
in interfaceNotificationListener
-
handleMemoryPool
-
getAndSet
-