Package org.jboss.jca.adapters.jdbc.util
Class LRUCache.LRUCacheEntry<K,V>
- java.lang.Object
-
- org.jboss.jca.adapters.jdbc.util.LRUCache.LRUCacheEntry<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLRUCacheEntry(K key, V value)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 KgetKey()Get keyVgetValue()Get valuevoidreset()ResetvoidsetNext(LRUCache.LRUCacheEntry<K,V> v)Set nextvoidsetPrev(LRUCache.LRUCacheEntry<K,V> v)Set prevStringtoString()voidupdateTimestamp()Update timestamp
-
-
-
Method Detail
-
getKey
public K getKey()
Get key- Returns:
- The value
-
getValue
public V getValue()
Get value- Returns:
- The value
-
setNext
public void setNext(LRUCache.LRUCacheEntry<K,V> v)
Set next- Parameters:
v- The value
-
setPrev
public void setPrev(LRUCache.LRUCacheEntry<K,V> v)
Set prev- Parameters:
v- The value
-
updateTimestamp
public void updateTimestamp()
Update timestamp
-
reset
public void reset()
Reset
-
-