Purpose: Container class for storing objects in an IdentityMap. The weak cache key uses a weak reference to allow garbage collection of its object. The cache key itself however will remain and thus should cleaned up every now and then.
Responsibilities:
| Modifier and Type | Field and Description |
|---|---|
| protected Reference | reference
Reference is maintained weak to allow garbage collection |
| Access | Constructor and Description |
|---|---|
| public | WeakCacheKey(Object
contains values extracted from the object primaryKey, Object object, Object is the write lock value, null if optimistic locking not being used for this object. writeLockValue, long the time EclipseLInk read the cache key readTime, boolean isIsolated)Initialize the newly allocated instance of this class. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public void |
| reference | back to summary |
|---|---|
| protected Reference<T> reference Reference is maintained weak to allow garbage collection | |
| WeakCacheKey | back to summary |
|---|---|
| public WeakCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime, boolean isIsolated) Initialize the newly allocated instance of this class. | |
| getObject | back to summary |
|---|---|
| public Object getObject() Overrides org.
| |
| setObject | back to summary |
|---|---|
| public void setObject(Object object) Overrides org.
| |