public class SerializedToolkitCache<K,V extends Serializable> extends Object implements org.terracotta.toolkit.cache.ToolkitCache<K,V>
ToolkitCache that supports serializable keys| Constructor and Description |
|---|
SerializedToolkitCache(org.terracotta.toolkit.cache.ToolkitCache toolkitMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(org.terracotta.toolkit.cache.ToolkitCacheListener<K> listener) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock |
createLockForKey(K key) |
org.terracotta.toolkit.search.QueryBuilder |
createQueryBuilder() |
void |
destroy() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Map<K,V> |
getAll(Collection<? extends K> keys) |
Map<K,V> |
getAllQuiet(Collection<K> keys) |
org.terracotta.toolkit.config.Configuration |
getConfiguration() |
String |
getName() |
V |
getQuiet(Object key) |
boolean |
isBulkLoadEnabled() |
boolean |
isDestroyed() |
boolean |
isEmpty() |
boolean |
isNodeBulkLoadEnabled() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
putIfAbsent(K key,
V value,
long createTimeInSecs,
int customMaxTTISeconds,
int customMaxTTLSeconds) |
void |
putNoReturn(K key,
V value) |
void |
putNoReturn(K key,
V value,
long createTimeInSecs,
int customMaxTTISeconds,
int customMaxTTLSeconds) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
void |
removeListener(org.terracotta.toolkit.cache.ToolkitCacheListener<K> listener) |
void |
removeNoReturn(Object key) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
setAttributeExtractor(org.terracotta.toolkit.search.attribute.ToolkitAttributeExtractor attrExtractor) |
void |
setConfigField(String name,
Serializable value) |
void |
setNodeBulkLoadEnabled(boolean enabledBulkLoad) |
int |
size() |
Collection<V> |
values() |
void |
waitUntilBulkLoadComplete() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic SerializedToolkitCache(org.terracotta.toolkit.cache.ToolkitCache toolkitMap)
public int size()
size in interface Map<K,V extends Serializable>public boolean isEmpty()
isEmpty in interface Map<K,V extends Serializable>public boolean containsKey(Object key)
containsKey in interface Map<K,V extends Serializable>public void putAll(Map<? extends K,? extends V> m)
putAll in interface Map<K,V extends Serializable>public void clear()
clear in interface Map<K,V extends Serializable>public boolean isDestroyed()
isDestroyed in interface org.terracotta.toolkit.object.Destroyablepublic void destroy()
destroy in interface org.terracotta.toolkit.object.Destroyablepublic String getName()
getName in interface org.terracotta.toolkit.object.ToolkitObjectpublic org.terracotta.toolkit.concurrent.locks.ToolkitReadWriteLock createLockForKey(K key)
createLockForKey in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void removeNoReturn(Object key)
removeNoReturn in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void putNoReturn(K key, V value)
putNoReturn in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public Map<K,V> getAll(Collection<? extends K> keys)
getAll in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public org.terracotta.toolkit.config.Configuration getConfiguration()
getConfiguration in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void setConfigField(String name, Serializable value)
setConfigField in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public boolean containsValue(Object value)
containsValue in interface Map<K,V extends Serializable>public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V extends Serializable>putIfAbsent in interface Map<K,V extends Serializable>public Set<Map.Entry<K,V>> entrySet()
entrySet in interface Map<K,V extends Serializable>public Collection<V> values()
values in interface Map<K,V extends Serializable>public boolean remove(Object key, Object value)
remove in interface ConcurrentMap<K,V extends Serializable>remove in interface Map<K,V extends Serializable>public boolean replace(K key, V oldValue, V newValue)
replace in interface ConcurrentMap<K,V extends Serializable>replace in interface Map<K,V extends Serializable>public V replace(K key, V value)
replace in interface ConcurrentMap<K,V extends Serializable>replace in interface Map<K,V extends Serializable>public Map<K,V> getAllQuiet(Collection<K> keys)
getAllQuiet in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public V getQuiet(Object key)
getQuiet in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void putNoReturn(K key, V value, long createTimeInSecs, int customMaxTTISeconds, int customMaxTTLSeconds)
putNoReturn in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public V putIfAbsent(K key, V value, long createTimeInSecs, int customMaxTTISeconds, int customMaxTTLSeconds)
putIfAbsent in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void addListener(org.terracotta.toolkit.cache.ToolkitCacheListener<K> listener)
addListener in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void removeListener(org.terracotta.toolkit.cache.ToolkitCacheListener<K> listener)
removeListener in interface org.terracotta.toolkit.cache.ToolkitCache<K,V extends Serializable>public void setAttributeExtractor(org.terracotta.toolkit.search.attribute.ToolkitAttributeExtractor attrExtractor)
setAttributeExtractor in interface org.terracotta.toolkit.search.SearchableMap<K,V extends Serializable>public org.terracotta.toolkit.search.QueryBuilder createQueryBuilder()
createQueryBuilder in interface org.terracotta.toolkit.search.SearchableMap<K,V extends Serializable>public boolean isBulkLoadEnabled()
isBulkLoadEnabled in interface org.terracotta.toolkit.bulkload.ToolkitBulkLoadObjectpublic boolean isNodeBulkLoadEnabled()
isNodeBulkLoadEnabled in interface org.terracotta.toolkit.bulkload.ToolkitBulkLoadObjectpublic void setNodeBulkLoadEnabled(boolean enabledBulkLoad)
setNodeBulkLoadEnabled in interface org.terracotta.toolkit.bulkload.ToolkitBulkLoadObjectpublic void waitUntilBulkLoadComplete()
throws InterruptedException
waitUntilBulkLoadComplete in interface org.terracotta.toolkit.bulkload.ToolkitBulkLoadObjectInterruptedExceptionCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.