org.smallmind.quorum.cache.indigenous
Class TimestampedCacheSource<K,V>

java.lang.Object
  extended by org.smallmind.quorum.cache.indigenous.TimestampedCacheSource<K,V>
All Implemented Interfaces:
CacheSource<K,V,TimestampOrderedCacheEntry<V>>

public abstract class TimestampedCacheSource<K,V>
extends Object
implements CacheSource<K,V,TimestampOrderedCacheEntry<V>>


Constructor Summary
TimestampedCacheSource()
           
 
Method Summary
 TimestampOrderedCacheEntry<V> createEntry(K key, Object... parameters)
           
abstract  V obtainValue(K key, Object... parameters)
           
 CacheReference<K,TimestampOrderedCacheEntry<V>> wrapReference(K key, V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampedCacheSource

public TimestampedCacheSource()
Method Detail

obtainValue

public abstract V obtainValue(K key,
                              Object... parameters)
                       throws Exception
Throws:
Exception

createEntry

public TimestampOrderedCacheEntry<V> createEntry(K key,
                                                 Object... parameters)
                                          throws CacheException
Specified by:
createEntry in interface CacheSource<K,V,TimestampOrderedCacheEntry<V>>
Throws:
CacheException

wrapReference

public CacheReference<K,TimestampOrderedCacheEntry<V>> wrapReference(K key,
                                                                     V value)
                                                              throws CacheException
Specified by:
wrapReference in interface CacheSource<K,V,TimestampOrderedCacheEntry<V>>
Throws:
CacheException


Copyright © 2011. All Rights Reserved.