nl.surfnet.coin.csa.api.cache
Class AbstractCache
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.slf4j.Logger LOG
AbstractCache
public AbstractCache()
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.