public abstract class AbstractCache extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected long |
callDelay |
protected static org.slf4j.Logger |
LOG |
| 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 |
getCallDelay() |
long |
getDelay() |
long |
getDuration() |
void |
setCallDelay(long callDelay) |
void |
setDelay(long delay) |
void |
setDuration(long duration) |
protected static final org.slf4j.Logger LOG
@Value(value="${cacheMillisecondsCallDelay}")
protected long callDelay
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 getCallDelay()
public void setCallDelay(long callDelay)
public long getDuration()
public void setDuration(long duration)
Copyright © 2013–2014 SURFnet bv, The Netherlands. All rights reserved.