public abstract class CacheableDataType extends Object implements Serializable
It maintains a shared reference queue for housekeeping of GC'd data type
instances. The concrete subtypes should use this reference queue instance
(via the getRefQ() method) when setting up their caches.
| Constructor and Description |
|---|
CacheableDataType() |
| Modifier and Type | Method and Description |
|---|---|
protected static ReferenceQueue<CacheableDataType> |
getRefQ()
Provides subclasses with access to our reference queue.
|
protected static String |
keyFromBytes(byte[] bytes)
Creates a unique string key for the given byte array.
|
protected static ReferenceQueue<CacheableDataType> getRefQ()
protected static String keyFromBytes(byte[] bytes)
bytes - the bytesCopyright © 2014. All Rights Reserved.