Java™ Platform
Standard Ed. 8
compact3
java.lang.management
Class MemoryNotificationInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
static MemoryNotificationInfo |
from(CompositeData cd) |
Returns a MemoryNotificationInfo object represented by the
given CompositeData.
|
long |
getCount() |
Returns the number of times that the memory usage has crossed
a threshold when the notification was constructed.
|
String |
getPoolName() |
Returns the name of the memory pool that triggers this notification.
|
MemoryUsage |
getUsage() |
Returns the memory usage of the memory pool
when this notification was constructed.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MemoryNotificationInfo
public MemoryNotificationInfo(String poolName,
MemoryUsage usage,
long count)
Constructs a MemoryNotificationInfo object.
- Parameters:
poolName - The name of the memory pool which triggers this notification.
usage - Memory usage of the memory pool.
count - The threshold crossing count.
-
Method Detail
-
getCount
public long getCount()
Returns the number of times that the memory usage has crossed
a threshold when the notification was constructed.
For usage threshold notifications, this count will be the
threshold
count. For collection threshold notifications,
this count will be the
collection usage threshold count.
- Returns:
- the number of times that the memory usage has crossed
a threshold when the notification was constructed.
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.