Click or drag to resize

SoftReferenceT Class

Soft references are like weak references in that they allow an object to go out of scope when it is not referenced. Any "hard" reference to an object causes the object to remain out of the eyes of the GC. The soft reference splits the difference by marking an object with a hard reference and using a counter. When the object is accessed, the reference count increases and over time decays to zero. When it decays to zero, the reference effectively becomes a weak reference and is available to the GC.
Inheritance Hierarchy
SystemWeakReference
  com.espertech.esper.compatWeakReferenceT
    com.espertech.esper.compatSoftReferenceT

Namespace:  com.espertech.esper.compat
Assembly:  NEsper.Compat (in NEsper.Compat.dll) Version: 8.0.0.0
Syntax
C#
public class SoftReference<T> : WeakReference<T>
where T : class

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:com.espertech.esper.compat.SoftReference`1"]

The SoftReferenceT type exposes the following members.

Constructors
  NameDescription
Public methodSoftReferenceT
Initializes a new instance of the SoftReferenceT class.
Top
Properties
Methods
See Also