Package org.jboss.util
Class LRUCachePolicy.LRUCacheEntry
- java.lang.Object
-
- org.jboss.util.LRUCachePolicy.LRUCacheEntry
-
- Enclosing class:
- LRUCachePolicy
public class LRUCachePolicy.LRUCacheEntry extends java.lang.Object
Double linked cell used as entry in the cache list.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
m_key
The key used to retrieve the cached objectLRUCachePolicy.LRUCacheEntry
m_next
Reference to the next cell in the listjava.lang.Object
m_object
The cached objectLRUCachePolicy.LRUCacheEntry
m_prev
Reference to the previous cell in the listlong
m_time
The timestamp of the creation
-
Constructor Summary
Constructors Modifier Constructor Description protected
LRUCacheEntry(java.lang.Object key, java.lang.Object object)
Creates a new double linked cell, storing the object we want to cache and the key that is used to retrieve it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
m_next
public LRUCachePolicy.LRUCacheEntry m_next
Reference to the next cell in the list
-
m_prev
public LRUCachePolicy.LRUCacheEntry m_prev
Reference to the previous cell in the list
-
m_key
public java.lang.Object m_key
The key used to retrieve the cached object
-
m_object
public java.lang.Object m_object
The cached object
-
m_time
public long m_time
The timestamp of the creation
-
-