public abstract class AbstractCache extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
AbstractCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected abstract void |
doPopulateCache()
Template method that defines how to populate a certain cache
|
void |
evict()
Evicts the cache (asynchronously), effectively by scheduling a one time populate-job.
|
void |
evictSynchronously()
Clears the cache (synchronously)
|
protected abstract String |
getCacheName() |
long |
getDelay() |
long |
getDuration() |
void |
setDelay(long delay) |
void |
setDuration(long duration) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected abstract void doPopulateCache()
protected abstract String getCacheName()
public void evict()
public void evictSynchronously()
public long getDelay()
public void setDelay(long delay)
public long getDuration()
public void setDuration(long duration)
Copyright © 2013 SURFnet bv, The Netherlands. All rights reserved.