com.softwareag.um.modules.storage.StorageFactory Class Reference

Represents a factory for creating Storage objects. More...

Static Public Member Functions

static Storage create (StorageProperties properties) throws Exception
 Creates a Storage object with the specified properties. More...
 
static boolean isReferenceBasedMemoryManagement ()
 Configures whether to use a java.lang.ref.Reference to control the Memory Monitor, the specific implementation being utilised is java.lang.ref.WeakReference. More...
 
static void setReferenceBasedMemoryManagement (boolean useReference)
 Configures whether to use a java.lang.ref.Reference to control the Memory Monitor, the specific implementation being utilised is java.lang.ref.WeakReference. More...
 

Detailed Description

Represents a factory for creating Storage objects.

Member Function Documentation

static Storage com.softwareag.um.modules.storage.StorageFactory.create ( StorageProperties  properties) throws Exception
static

Creates a Storage object with the specified properties.

Parameters
propertiesSpecifies the Storage creation
Returns
The created Storage object
static boolean com.softwareag.um.modules.storage.StorageFactory.isReferenceBasedMemoryManagement ( )
static

Configures whether to use a java.lang.ref.Reference to control the Memory Monitor, the specific implementation being utilised is java.lang.ref.WeakReference.

The advantage of this Reference based management is the Garbage collector can more eagerly clear the cache.

Returns
if true the Reference based manager is running, which is the default
static void com.softwareag.um.modules.storage.StorageFactory.setReferenceBasedMemoryManagement ( boolean  useReference)
static

Configures whether to use a java.lang.ref.Reference to control the Memory Monitor, the specific implementation being utilised is java.lang.ref.WeakReference.

The advantage of this Reference based management is the Garbage collector can more eagerly clear the cache.

Parameters
useReferencetrue enables the Reference based manager, which is the default