Click or drag to resize

CacheReferenceType Class

Enum indicating what kind of references are used to store the cache map's keys and values.
Inheritance Hierarchy
SystemEnum
  com.espertech.esper.common.client.utilCacheReferenceType

Namespace:  com.espertech.esper.common.client.util
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public sealed class CacheReferenceType : Enum

The CacheReferenceType type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberDEFAULT
The default policy is set to WEAK to reduce the chance that out-of-memory errors occur as caches fill, and stay backwards compatible with prior Esper releases.
Public fieldStatic memberHARD
Constant indicating that hard references should be used.

Does not allow garbage collection to remove cache entries.

Public fieldStatic memberSOFT
Constant indicating that soft references should be used.

Allows garbage collection to remove cache entries only after all weak references have been collected.

Public fieldvalue__
Public fieldStatic memberWEAK
Constant indicating that weak references should be used.

Allows garbage collection to remove cache entries.

Top
See Also