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() |
void |
close() |
boolean |
containsKey(K key) |
void |
delete(K key) |
ICompletableFuture<Boolean> |
deleteAsync(K key) |
void |
destroy() |
boolean |
evict(K key) |
void |
evictAll() |
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) |
ICompletableFuture<V> |
putAsync(K key,
V value) |
ICompletableFuture<V> |
putAsync(K key,
V value,
javax.cache.expiry.ExpiryPolicy expiryPolicy) |
ICompletableFuture<V> |
putAsync(K key,
V value,
long ttl,
TimeUnit timeunit) |
boolean |
putIfAbsent(K key,
V value) |
ICompletableFuture<Boolean> |
putIfAbsentAsync(K key,
V value) |
void |
putTransient(K key,
V value,
long ttl,
TimeUnit timeunit) |
V |
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) |
ICompletableFuture<Void> |
setAsync(K key,
V value) |
ICompletableFuture<Void> |
setAsync(K key,
V value,
javax.cache.expiry.ExpiryPolicy expiryPolicy) |
ICompletableFuture<Void> |
setAsync(K key,
V value,
long ttl,
TimeUnit timeunit) |
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 ICompletableFuture<Void> setAsync(K key, V value)
setAsync
in interface DataStructureAdapter<K,V>
public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit timeunit)
setAsync
in interface DataStructureAdapter<K,V>
public ICompletableFuture<Void> setAsync(K key, V value, javax.cache.expiry.ExpiryPolicy expiryPolicy)
setAsync
in interface DataStructureAdapter<K,V>
public ICompletableFuture<V> putAsync(K key, V value)
putAsync
in interface DataStructureAdapter<K,V>
public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit timeunit)
putAsync
in interface DataStructureAdapter<K,V>
public ICompletableFuture<V> putAsync(K key, V value, javax.cache.expiry.ExpiryPolicy expiryPolicy)
putAsync
in interface DataStructureAdapter<K,V>
public void putTransient(K key, V value, long ttl, TimeUnit timeunit)
putTransient
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 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 void delete(K key)
delete
in interface DataStructureAdapter<K,V>
public ICompletableFuture<Boolean> deleteAsync(K key)
deleteAsync
in interface DataStructureAdapter<K,V>
public boolean evict(K key)
evict
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.EntryProcessorException
public 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 void evictAll()
evictAll
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 close()
close
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 © 2018 Hazelcast, Inc.. All Rights Reserved.