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