Package org.postgresql.core
Class AsciiStringInterner.StringReference
- java.lang.Object
-
- java.lang.ref.Reference<T>
-
- java.lang.ref.SoftReference<java.lang.String>
-
- org.postgresql.core.AsciiStringInterner.StringReference
-
- Enclosing class:
- AsciiStringInterner
private final class AsciiStringInterner.StringReference extends java.lang.ref.SoftReference<java.lang.String>
CustomSoftReference
implementation which maintains a reference to the key in the cache, which allows aggressive cleaning when garbage collector collects theString
instance.
-
-
Field Summary
Fields Modifier and Type Field Description private AsciiStringInterner.BaseKey
key
-
Constructor Summary
Constructors Constructor Description StringReference(AsciiStringInterner.BaseKey key, java.lang.String referent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
dispose()
-
-
-
Field Detail
-
key
private final AsciiStringInterner.BaseKey key
-
-
Constructor Detail
-
StringReference
StringReference(AsciiStringInterner.BaseKey key, java.lang.String referent)
-
-