org.exoplatform.forum.common.cache
Class CacheLoader<K extends ScopeCacheKey,V extends Serializable>

java.lang.Object
  extended by org.exoplatform.forum.common.cache.CacheLoader<K,V>
All Implemented Interfaces:
org.exoplatform.services.cache.future.Loader<K,V,ServiceContext<V>>

public class CacheLoader<K extends ScopeCacheKey,V extends Serializable>
extends Object
implements org.exoplatform.services.cache.future.Loader<K,V,ServiceContext<V>>

Used by FutureCache to execute the ServiceContext.


Constructor Summary
CacheLoader()
           
 
Method Summary
 V retrieve(ServiceContext<V> cacheContext, K key)
          Execute the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheLoader

public CacheLoader()
Method Detail

retrieve

public V retrieve(ServiceContext<V> cacheContext,
                  K key)
                                throws Exception
Execute the context.

Specified by:
retrieve in interface org.exoplatform.services.cache.future.Loader<K extends ScopeCacheKey,V extends Serializable,ServiceContext<V extends Serializable>>
Parameters:
cacheContext -
key -
Returns:
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.