|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.core.OutOfMemoryErrorHandler
public abstract class OutOfMemoryErrorHandler
A class to be extended so as to handle OutOfMemoryErrors.
Field Summary | |
---|---|
static boolean |
handleOutOfMemoryErrorFalse
For ease of search and replace coding. |
static boolean |
handleOutOfMemoryErrorTrue
For ease of search and replace coding. |
protected int[] |
memoryReserve
Reserve memory that can be set to null and garbage collected so as to handle OutOfMemoryErrors. |
Constructor Summary | |
---|---|
OutOfMemoryErrorHandler()
|
Method Summary | |
---|---|
void |
clearMemoryReserve()
Clears memoryReserve by setting it to null and calling the garbage collector. |
void |
initMemoryReserve()
Initialises memoryReserve as an array of size 2000000. |
void |
initMemoryReserve(int size)
Initialises memoryReserve as an array of size given by size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean handleOutOfMemoryErrorFalse
public static final boolean handleOutOfMemoryErrorTrue
protected transient int[] memoryReserve
Constructor Detail |
---|
public OutOfMemoryErrorHandler()
Method Detail |
---|
public final void initMemoryReserve(int size)
size
- The size that memoryReserve is initialised to.public final void initMemoryReserve()
public final void clearMemoryReserve()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |