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)
Sets the default time to live for cache entries.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanUp, delete, get, getMetaData, getStatistics, getWithErrors, put, putWithErrorspublic 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)
CachesetDefaultTtl in interface Cache<K,V>defaultTTL - The default time to live for a cache entry in milliseconds.public final void setDefaultMaxIdleTime(long defaultMaxIdleTime)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.