| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
   com.tangosol.util.Base
com.tangosol.util.Base
       com.tangosol.util.SafeHashMap.Entry
com.tangosol.util.SafeHashMap.Entry
           com.tangosol.net.cache.OldCache.Entry
com.tangosol.net.cache.OldCache.Entry
public class OldCache.Entry
A holder for a cached value.
| Field Summary | 
|---|
| Fields inherited from class com.tangosol.util.SafeHashMap.Entry | 
|---|
| m_eNext, m_nHash, m_oKey, m_oValue | 
| Constructor Summary | |
|---|---|
| OldCache.Entry()Construct the cacheable entry that holds the cached value. | |
| Method Summary | |
|---|---|
| protected  int | calculateUnits(java.lang.Object oValue)Calculate a cache cost for the specified object. | 
| protected  void | copyFrom(SafeHashMap.Entry entry)Copy this Entry's information from another Entry. | 
| protected  void | discard()Called to inform the Entry that it is no longer used. | 
|  long | getCreatedMillis()Determine when the cache entry was created. | 
|  long | getExpiryMillis()Determine when the cache entry will expire, if ever. | 
|  long | getLastTouchMillis()Determine when the cache entry was last touched. | 
|  int | getPriority()Calculate a cache priority. | 
|  int | getTouchCount()Determine the number of times that the cache entry has been touched. | 
|  int | getUnits()Determine the number of cache units used by this Entry. | 
| protected  boolean | isDiscarded()Determine if this entry has already been discarded from the cache. | 
| protected  boolean | isEvictable()Determine if this entry has been marked as being evictable. | 
|  boolean | isExpired()Determine if the cache entry has expired. | 
| protected  void | onAdd()This method is invoked when the containing Map has actually added this Entry to itself. | 
| protected  void | registerExpiry(long lMillis)Register (or unregister or replace the registration of) this entry for expiry. | 
| protected  void | resetTouchCount()Reset the number of times that the cache entry has been touched. | 
| protected  void | scheduleExpiry()Reschedule the cache entry expiration. | 
| protected  void | setEvictable(boolean fEvict)Specify that this entry is evictable or not. | 
|  void | setExpiryMillis(long lMillis)Specify when the cache entry will expire, or disable expiry. | 
|  void | setUnits(int cUnits)Specify the number of cache units used by this Entry. | 
|  java.lang.Object | setValue(java.lang.Object oValue)Update the cached value. | 
|  java.lang.String | toString()Render the cache entry as a String. | 
|  void | touch()Called each time the entry is accessed or modified. | 
| Methods inherited from class com.tangosol.util.SafeHashMap.Entry | 
|---|
| clone, equals, getKey, getValue, hashCode | 
| Methods inherited from interface java.util.Map.Entry | 
|---|
| equals, getKey, getValue, hashCode | 
| Constructor Detail | 
|---|
public OldCache.Entry()
| Method Detail | 
|---|
protected void onAdd()
onAdd in class SafeHashMap.Entrypublic java.lang.Object setValue(java.lang.Object oValue)
setValue in interface java.util.Map.EntrysetValue in class SafeHashMap.EntryoValue - the new value to cacheprotected void copyFrom(SafeHashMap.Entry entry)
copyFrom in class SafeHashMap.Entryentry - the entry to copy frompublic int getPriority()
public long getCreatedMillis()
public void touch()
touch in interface ConfigurableCacheMap.Entrypublic long getLastTouchMillis()
getLastTouchMillis in interface ConfigurableCacheMap.Entrypublic int getTouchCount()
getTouchCount in interface ConfigurableCacheMap.Entryprotected void resetTouchCount()
public long getExpiryMillis()
getExpiryMillis in interface ConfigurableCacheMap.Entrypublic void setExpiryMillis(long lMillis)
setExpiryMillis in interface ConfigurableCacheMap.EntrylMillis - pass the date/time value, in millis, for when the entry will expire, or pass zero to disable automatic expiryprotected void registerExpiry(long lMillis)
lMillis - the date/time value for when the entry will expire; 0 is passed to indicate that the entry needs to be removed from the items queued for expirypublic boolean isExpired()
protected void scheduleExpiry()
protected void discard()
protected boolean isDiscarded()
protected int calculateUnits(java.lang.Object oValue)
The default implementation uses the unit calculator type of the containing cache.
oValue - the cache value to evaluate for unit costpublic int getUnits()
getUnits in interface ConfigurableCacheMap.Entrypublic void setUnits(int cUnits)
setUnits in interface ConfigurableCacheMap.EntrycUnits - an integer value 0 or greater, with a larger value signifying a higher costprotected boolean isEvictable()
protected void setEvictable(boolean fEvict)
fEvict - true to specify that this entry is evictable, such as when it is selected for deferred eviction, and false to specify that it is no longer evictablepublic java.lang.String toString()
toString in class SafeHashMap.Entry| 
 | Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||