|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.yestech.cache.impl.TerracottaDistributedCacheManager<K,V>
public class TerracottaDistributedCacheManager<K,V>
ICacheManager that allows access to Terracotta DistributedCache
| Constructor Summary | |
|---|---|
TerracottaDistributedCacheManager()
|
|
| Method Summary | |
|---|---|
boolean |
contains(K k)
Checks is a Key is present in the cache. |
void |
flush(K key)
Flush the Value associated with the Key from the Cache |
void |
flushAll()
Flushes the entire cache |
V |
get(K key)
Return the Value associated with the Key |
int |
getMaxTTIInSeconds()
|
int |
getMaxTTLInSeconds()
|
String |
getName()
|
long |
getOrphanEvictionFrequency()
|
int |
getTargetMaxInMemoryCount()
|
int |
getTargetMaxTotalCount()
|
boolean |
isEnableLogging()
|
boolean |
isOrphanEvictionEnabled()
|
Collection<K> |
keys()
Returns all the Keys found in the Cache. |
void |
load()
Loads a cache from some type of durable storage. |
void |
put(K k,
V v)
Puts a Key/Value into the cache, overriding any value the might already be associated with the Key. |
void |
put(org.yestech.lib.util.Pair<K,V> entry)
Puts a Key/Value into the cache, overriding any value the might already be associated with the Key. |
void |
putAll(Map<K,V> collection)
Puts a Collection of Key/Value Pairs into the cache. |
void |
setEnableLogging(boolean enableLogging)
|
void |
setMaxTTIInSeconds(int maxTTIInSeconds)
|
void |
setMaxTTLInSeconds(int maxTTLInSeconds)
|
void |
setName(String name)
|
void |
setOrphanEvictionEnabled(boolean orphanEvictionEnabled)
|
void |
setOrphanEvictionFrequency(int orphanEvictionFrequency)
|
void |
setTargetMaxInMemoryCount(int targetMaxInMemoryCount)
|
void |
setTargetMaxTotalCount(int targetMaxTotalCount)
|
void |
start()
|
void |
stop()
|
void |
store()
Stores a cache to some type of durable storage. |
Collection<V> |
values()
Returns all the values stored in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerracottaDistributedCacheManager()
| Method Detail |
|---|
@PostConstruct public void start()
@PreDestroy public void stop()
public String getName()
public void setName(String name)
public int getTargetMaxInMemoryCount()
public void setTargetMaxInMemoryCount(int targetMaxInMemoryCount)
public int getTargetMaxTotalCount()
public void setTargetMaxTotalCount(int targetMaxTotalCount)
public long getOrphanEvictionFrequency()
public void setOrphanEvictionFrequency(int orphanEvictionFrequency)
public boolean isOrphanEvictionEnabled()
public void setOrphanEvictionEnabled(boolean orphanEvictionEnabled)
public boolean isEnableLogging()
public void setEnableLogging(boolean enableLogging)
public int getMaxTTIInSeconds()
public void setMaxTTIInSeconds(int maxTTIInSeconds)
public int getMaxTTLInSeconds()
public void setMaxTTLInSeconds(int maxTTLInSeconds)
public boolean contains(K k)
ICacheManager
contains in interface ICacheManager<K,V>k - the Key to check
public void putAll(Map<K,V> collection)
ICacheManager
putAll in interface ICacheManager<K,V>collection - Collection of Keys/Values to addpublic void put(org.yestech.lib.util.Pair<K,V> entry)
ICacheManager
put in interface ICacheManager<K,V>entry - Key and Value pair to add (Key is Pair.getFirst() and Value is
Pair.getSecond().
public void put(K k,
V v)
ICacheManager
put in interface ICacheManager<K,V>k - Key that the value will be associated byv - Value to be cachedpublic V get(K key)
ICacheManager
get in interface ICacheManager<K,V>key - Key to lookup
public void flushAll()
ICacheManager
flushAll in interface ICacheManager<K,V>public void flush(K key)
ICacheManager
flush in interface ICacheManager<K,V>key - Key to flushpublic Collection<K> keys()
ICacheManager
keys in interface ICacheManager<K,V>public Collection<V> values()
ICacheManager
values in interface ICacheManager<K,V>public void store()
store in interface ICacheManager<K,V>public void load()
load in interface ICacheManager<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||