com.sibvisions.util
Class Memory

java.lang.Object
  extended by com.sibvisions.util.Memory
All Implemented Interfaces:
Runnable

public final class Memory
extends Object
implements Runnable

The Memory class is a utility class for memory optimization and information.


Method Summary
static void gc()
          Starts the garbage collector as soon as possible.
 void run()
          Triggers the finalization of objects and the garbage collector.
static void startGc()
          Starts the garbage collector triggering thread.
static void stopGc()
          Stops the garbage collector triggering thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()
Triggers the finalization of objects and the garbage collector.

Specified by:
run in interface Runnable

startGc

public static void startGc()
Starts the garbage collector triggering thread.


stopGc

public static void stopGc()
Stops the garbage collector triggering thread.


gc

public static void gc()
Starts the garbage collector as soon as possible.



Copyright © 2009 SIB Visions GmbH. All Rights Reserved.