com.application.areca
Class MemoryHelper

java.lang.Object
  extended by com.application.areca.MemoryHelper

public class MemoryHelper
extends java.lang.Object

Static class that provides helper methods for memory management.

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Constructor Summary
MemoryHelper()
           
 
Method Summary
static long getMaxManageableEntries()
           
static double getMemorySafetyMargin()
          Returns the ratio of memory which is kept free for Areca.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryHelper

public MemoryHelper()
Method Detail

getMaxManageableEntries

public static long getMaxManageableEntries()

getMemorySafetyMargin

public static double getMemorySafetyMargin()
Returns the ratio of memory which is kept free for Areca.
For instance a ratio of 0.3 means that Areca's caching strategy will always attempts to keep 30% of the overall memory available, and will trigger a GC if the free memory falls below this limit.