K
- the type of key.V
- the type of value.public interface ICacheInternal<K,V> extends ICache<K,V>
ICache
implementations.ICache
Modifier and Type | Method and Description |
---|---|
Iterator<javax.cache.Cache.Entry<K,V>> |
iterator(int fetchSize,
int partitionId,
boolean prefetchValues)
Cluster-wide iterator for
ICache |
void |
open()
Opens cache if available (not destroyed).
|
void |
registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration,
boolean addToConfig)
Registers the provided listener configuration.
|
void |
resetCacheManager()
Reset cache manager of this cache proxy to
null . |
void |
setCacheManager(HazelcastCacheManager cacheManager)
Sets relevant
HazelcastCacheManager to client/server. |
addPartitionLostListener, destroy, get, getAll, getAndPut, getAndPutAsync, getAndPutAsync, getAndRemoveAsync, getAndReplace, getAndReplaceAsync, getAndReplaceAsync, getAsync, getAsync, getLocalCacheStatistics, isDestroyed, iterator, put, putAll, putAsync, putAsync, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, removeAsync, removeAsync, removePartitionLostListener, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, setExpiryPolicy, setExpiryPolicy, size
clear, close, containsKey, deregisterCacheEntryListener, get, getAll, getAndPut, getAndRemove, getAndReplace, getCacheManager, getConfiguration, getName, invoke, invokeAll, isClosed, iterator, loadAll, put, putAll, putIfAbsent, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, unwrap
forEach, spliterator
getPrefixedName
getName, getPartitionKey, getServiceName
void open()
IllegalStateException
- if cache is already destroyedvoid registerCacheEntryListener(javax.cache.configuration.CacheEntryListenerConfiguration<K,V> cacheEntryListenerConfiguration, boolean addToConfig) throws IllegalArgumentException
cacheEntryListenerConfiguration
- The cache configuration to be used for registering the entry listeneraddToConfig
- If true, the configuration is added to the existing listeners in the cache config.IllegalArgumentException
Iterator<javax.cache.Cache.Entry<K,V>> iterator(int fetchSize, int partitionId, boolean prefetchValues)
ICache
fetchSize
- batch fetching sizepartitionId
- partition ID of the entries to iterate onprefetchValues
- prefetch valuesvoid setCacheManager(HazelcastCacheManager cacheManager)
HazelcastCacheManager
to client/server.cacheManager
- client or server HazelcastCacheManager
void resetCacheManager()
null
. Whenever a Cache is not managed any more
(for example after Cache.close()
has been called), its CacheManager
should be reset.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.