1 19 20 package org.netbeans.modules.java.source.util; 21 22 import java.lang.management.MemoryPoolMXBean ; 23 import java.util.EventObject ; 24 25 29 public class LowMemoryEvent extends EventObject { 30 31 private final MemoryPoolMXBean pool; 32 33 34 public LowMemoryEvent (final Object source, final MemoryPoolMXBean pool) { 35 super (source); 36 assert source != null; 37 assert pool != null; 38 this.pool = pool; 39 } 40 41 public MemoryPoolMXBean getMemoryPool () { 42 return this.pool; 43 } 44 45 } 46 | Popular Tags |