public abstract class AbstractCache<K,V> extends Object implements Cache<K,V>
UNLIMITED_IDLE_TIME| Constructor and Description |
|---|
AbstractCache(String name,
long defaultTimeToLive) |
AbstractCache(String name,
long defaultTimeToLive,
long defaultMaxIdleTime) |
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.Logger |
getCleanUpLogger() |
long |
getDefaultMaxIdleTime()
Get the default max idle time for cache entries.
|
long |
getDefaultTtl()
Retrieve the default time to live for cache entries.
|
org.slf4j.Logger |
getLogger() |
String |
getName()
Get the name of this cache.
|
void |
setDefaultMaxIdleTime(long defaultMaxIdleTime) |
void |
setDefaultTtl(long defaultTTL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, delete, get, getMetaData, getStatistics, putpublic AbstractCache(String name, long defaultTimeToLive)
public AbstractCache(String name, long defaultTimeToLive, long defaultMaxIdleTime)
public final String getName()
Cachepublic final long getDefaultTtl()
CachegetDefaultTtl in interface Cache<K,V>public final long getDefaultMaxIdleTime()
CachegetDefaultMaxIdleTime in interface Cache<K,V>public final org.slf4j.Logger getLogger()
public final org.slf4j.Logger getCleanUpLogger()
public final void setDefaultTtl(long defaultTTL)
public final void setDefaultMaxIdleTime(long defaultMaxIdleTime)
Copyright © 2012. All Rights Reserved.