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