nl.surfnet.coin.csa.api.cache
Class AbstractCache

java.lang.Object
  extended by nl.surfnet.coin.csa.api.cache.AbstractCache
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
ProviderCache, ServicesCache

public abstract class AbstractCache
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean


Field Summary
protected static org.slf4j.Logger LOG
           
 
Constructor Summary
AbstractCache()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
protected abstract  void doPopulateCache()
          Template method that defines how to populate a certain cache
 void evict()
          Evicts the cache (asyncronously), effectively by scheduling a one time populate-job.
protected abstract  String getCacheName()
           
 long getDelay()
           
 long getDuration()
           
 void setDelay(long delay)
           
 void setDuration(long duration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.slf4j.Logger LOG
Constructor Detail

AbstractCache

public AbstractCache()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

doPopulateCache

protected abstract void doPopulateCache()
Template method that defines how to populate a certain cache


getCacheName

protected abstract String getCacheName()

evict

public void evict()
Evicts the cache (asyncronously), effectively by scheduling a one time populate-job.


getDelay

public long getDelay()

setDelay

public void setDelay(long delay)

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)


Copyright © 2013 SURFnet bv, The Netherlands. All Rights Reserved.