public class IMapDataStructureAdapter<K,V> extends Object implements DataStructureAdapter<K,V>
DataStructureAdapter.DataStructureMethods| Constructor and Description |
|---|
IMapDataStructureAdapter(IMap<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(K key) |
void |
destroy() |
Map<K,Object> |
executeOnEntries(EntryProcessor entryProcessor) |
Map<K,Object> |
executeOnEntries(EntryProcessor entryProcessor,
Predicate predicate) |
Object |
executeOnKey(K key,
EntryProcessor entryProcessor) |
Map<K,Object> |
executeOnKeys(Set<K> keys,
EntryProcessor entryProcessor) |
V |
get(K key) |
Map<K,V> |
getAll(Set<K> keys) |
ICompletableFuture<V> |
getAsync(K key) |
LocalMapStats |
getLocalMapStats() |
<T> T |
invoke(K key,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Set<? extends K> keys,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... arguments) |
void |
loadAll(boolean replaceExistingValues) |
void |
loadAll(Set<? extends K> keys,
boolean replaceExistingValues,
javax.cache.integration.CompletionListener completionListener) |
void |
loadAll(Set<K> keys,
boolean replaceExistingValues) |
V |
put(K key,
V value) |
void |
putAll(Map<K,V> map) |
boolean |
putIfAbsent(K key,
V value) |
ICompletableFuture<Boolean> |
putIfAbsentAsync(K key,
V value) |
void |
remove(K key) |
boolean |
remove(K key,
V oldValue) |
void |
removeAll() |
void |
removeAll(Set<K> keys) |
ICompletableFuture<V> |
removeAsync(K key) |
V |
replace(K key,
V newValue) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
set(K key,
V value) |
int |
size() |
void |
waitUntilLoaded() |
public int size()
size in interface DataStructureAdapter<K,V>public ICompletableFuture<V> getAsync(K key)
getAsync in interface DataStructureAdapter<K,V>public boolean putIfAbsent(K key, V value)
putIfAbsent in interface DataStructureAdapter<K,V>public ICompletableFuture<Boolean> putIfAbsentAsync(K key, V value)
putIfAbsentAsync in interface DataStructureAdapter<K,V>public V replace(K key, V newValue)
replace in interface DataStructureAdapter<K,V>public boolean replace(K key, V oldValue, V newValue)
replace in interface DataStructureAdapter<K,V>public void remove(K key)
remove in interface DataStructureAdapter<K,V>public boolean remove(K key, V oldValue)
remove in interface DataStructureAdapter<K,V>public ICompletableFuture<V> removeAsync(K key)
removeAsync in interface DataStructureAdapter<K,V>public <T> T invoke(K key, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments) throws javax.cache.processor.EntryProcessorException
invoke in interface DataStructureAdapter<K,V>javax.cache.processor.EntryProcessorExceptionpublic Object executeOnKey(K key, EntryProcessor entryProcessor)
executeOnKey in interface DataStructureAdapter<K,V>public Map<K,Object> executeOnKeys(Set<K> keys, EntryProcessor entryProcessor)
executeOnKeys in interface DataStructureAdapter<K,V>public Map<K,Object> executeOnEntries(EntryProcessor entryProcessor)
executeOnEntries in interface DataStructureAdapter<K,V>public Map<K,Object> executeOnEntries(EntryProcessor entryProcessor, Predicate predicate)
executeOnEntries in interface DataStructureAdapter<K,V>public boolean containsKey(K key)
containsKey in interface DataStructureAdapter<K,V>public void loadAll(boolean replaceExistingValues)
loadAll in interface DataStructureAdapter<K,V>public void loadAll(Set<K> keys, boolean replaceExistingValues)
loadAll in interface DataStructureAdapter<K,V>public void loadAll(Set<? extends K> keys, boolean replaceExistingValues, javax.cache.integration.CompletionListener completionListener)
loadAll in interface DataStructureAdapter<K,V>public Map<K,V> getAll(Set<K> keys)
getAll in interface DataStructureAdapter<K,V>public void removeAll()
removeAll in interface DataStructureAdapter<K,V>public void removeAll(Set<K> keys)
removeAll in interface DataStructureAdapter<K,V>public <T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... arguments)
invokeAll in interface DataStructureAdapter<K,V>public void clear()
clear in interface DataStructureAdapter<K,V>public void destroy()
destroy in interface DataStructureAdapter<K,V>public LocalMapStats getLocalMapStats()
getLocalMapStats in interface DataStructureAdapter<K,V>public void waitUntilLoaded()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.