72 * notifType.equals(MemoryNotificationInfo.MEMORY_COLLECTION_THRESHOLD_EXCEEDED)) {
73 * // retrieve the memory notification information
74 * CompositeData cd = (CompositeData) notif.getUserData();
75 * MemoryNotificationInfo info = MemoryNotificationInfo.from(cd);
76 * ....
77 * }
78 * </pre></blockquote>
79 *
80 * <p>
81 * The types of notifications emitted by <tt>MemoryMXBean</tt> are:
82 * <ul>
83 * <li>A {@link #MEMORY_THRESHOLD_EXCEEDED
84 * usage threshold exceeded notification}.
85 * <br>This notification will be emitted when
86 * the memory usage of a memory pool is increased and has reached
87 * or exceeded its
88 * <a href="MemoryPoolMXBean.html#UsageThreshold"> usage threshold</a> value.
89 * Subsequent crossing of the usage threshold value does not cause
90 * further notification until the memory usage has returned
91 * to become less than the usage threshold value.
92 * <p></li>
93 * <li>A {@link #MEMORY_COLLECTION_THRESHOLD_EXCEEDED
94 * collection usage threshold exceeded notification}.
95 * <br>This notification will be emitted when
96 * the memory usage of a memory pool is greater than or equal to its
97 * <a href="MemoryPoolMXBean.html#CollectionThreshold">
98 * collection usage threshold</a> after the Java virtual machine
99 * has expended effort in recycling unused objects in that
100 * memory pool.</li>
101 * </ul>
102 *
103 * @author Mandy Chung
104 * @since 1.5
105 *
106 */
107 public class MemoryNotificationInfo {
108 private final String poolName;
109 private final MemoryUsage usage;
110 private final long count;
111
112 /**
|
72 * notifType.equals(MemoryNotificationInfo.MEMORY_COLLECTION_THRESHOLD_EXCEEDED)) {
73 * // retrieve the memory notification information
74 * CompositeData cd = (CompositeData) notif.getUserData();
75 * MemoryNotificationInfo info = MemoryNotificationInfo.from(cd);
76 * ....
77 * }
78 * </pre></blockquote>
79 *
80 * <p>
81 * The types of notifications emitted by <tt>MemoryMXBean</tt> are:
82 * <ul>
83 * <li>A {@link #MEMORY_THRESHOLD_EXCEEDED
84 * usage threshold exceeded notification}.
85 * <br>This notification will be emitted when
86 * the memory usage of a memory pool is increased and has reached
87 * or exceeded its
88 * <a href="MemoryPoolMXBean.html#UsageThreshold"> usage threshold</a> value.
89 * Subsequent crossing of the usage threshold value does not cause
90 * further notification until the memory usage has returned
91 * to become less than the usage threshold value.
92 * </li>
93 * <li>A {@link #MEMORY_COLLECTION_THRESHOLD_EXCEEDED
94 * collection usage threshold exceeded notification}.
95 * <br>This notification will be emitted when
96 * the memory usage of a memory pool is greater than or equal to its
97 * <a href="MemoryPoolMXBean.html#CollectionThreshold">
98 * collection usage threshold</a> after the Java virtual machine
99 * has expended effort in recycling unused objects in that
100 * memory pool.</li>
101 * </ul>
102 *
103 * @author Mandy Chung
104 * @since 1.5
105 *
106 */
107 public class MemoryNotificationInfo {
108 private final String poolName;
109 private final MemoryUsage usage;
110 private final long count;
111
112 /**
|