Class LazyCache<K,V>
- java.lang.Object
-
- org.jboss.as.clustering.infinispan.cache.LazyBasicCache<K,V,org.infinispan.Cache<K,V>>
-
- org.jboss.as.clustering.infinispan.cache.LazyCache<K,V>
-
- All Implemented Interfaces:
PrivilegedAction<org.infinispan.Cache<K,V>>,ConcurrentMap<K,V>,Supplier<org.infinispan.Cache<K,V>>,Map<K,V>,org.infinispan.Cache<K,V>,org.infinispan.commons.api.AsyncCache<K,V>,org.infinispan.commons.api.BasicCache<K,V>,org.infinispan.commons.api.BatchingCache,org.infinispan.commons.api.Lifecycle,org.infinispan.notifications.FilteringListenable<K,V>,org.infinispan.notifications.Listenable
public class LazyCache<K,V> extends LazyBasicCache<K,V,org.infinispan.Cache<K,V>> implements org.infinispan.Cache<K,V>
An embedded cache that resolves itself from its cache container lazily.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <C> CompletionStage<Void>addFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter, Set<Class<? extends Annotation>> filterAnnotations)CompletionStage<Void>addListenerAsync(Object listener)<C> CompletionStage<Void>addListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter)<C> CompletionStage<Void>addStorageFormatFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter, Set<Class<? extends Annotation>> filterAnnotations)voidendBatch(boolean successful)org.infinispan.CacheSet<Map.Entry<K,V>>entrySet()voidevict(K key)org.infinispan.AdvancedCache<K,V>getAdvancedCache()org.infinispan.configuration.cache.ConfigurationgetCacheConfiguration()org.infinispan.manager.EmbeddedCacheManagergetCacheManager()Set<Object>getListeners()Deprecated.org.infinispan.lifecycle.ComponentStatusgetStatus()org.infinispan.CacheSet<K>keySet()voidputForExternalRead(K key, V value)voidputForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit)voidputForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)CompletionStage<Void>removeListenerAsync(Object listener)org.infinispan.Cache<K,V>run()booleanstartBatch()org.infinispan.CacheCollection<V>values()-
Methods inherited from class org.jboss.as.clustering.infinispan.cache.LazyBasicCache
clear, clearAsync, compute, compute, compute, computeAsync, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresent, computeIfPresent, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKey, containsValue, get, get, getAsync, getName, getVersion, isEmpty, merge, merge, merge, mergeAsync, mergeAsync, mergeAsync, put, put, put, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putIfAbsent, putIfAbsent, putIfAbsent, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, remove, remove, removeAsync, removeAsync, replace, replace, replace, replace, replace, replace, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, size, sizeAsync, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.api.AsyncCache
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, getAllAsync, getAsync, mergeAsync, mergeAsync, mergeAsync, putAllAsync, putAllAsync, putAllAsync, putAsync, putAsync, putAsync, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, sizeAsync
-
Methods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, getName, getVersion, merge, merge, put, put, put, putAll, putAll, putIfAbsent, putIfAbsent, remove, replace, replace, replace, replace
-
Methods inherited from interface org.infinispan.Cache
clear, compute, compute, compute, compute, computeAsync, computeAsync, computeAsync, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsent, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresent, computeIfPresent, computeIfPresentAsync, merge, merge, merge, merge, mergeAsync, mergeAsync, mergeAsync, shutdown, size, stop
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, putIfAbsent, remove, replace, replace, replaceAll
-
Methods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addListener, addStorageFormatFilteredListener
-
Methods inherited from interface org.infinispan.notifications.Listenable
addListener, removeListener
-
Methods inherited from interface java.util.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, putAll
-
-
-
-
Constructor Detail
-
LazyCache
public LazyCache(org.infinispan.manager.EmbeddedCacheManager container, String name)
-
-
Method Detail
-
run
public org.infinispan.Cache<K,V> run()
- Specified by:
runin interfacePrivilegedAction<K>
-
getCacheManager
public org.infinispan.manager.EmbeddedCacheManager getCacheManager()
-
getCacheConfiguration
public org.infinispan.configuration.cache.Configuration getCacheConfiguration()
-
getListeners
@Deprecated public Set<Object> getListeners()
Deprecated.- Specified by:
getListenersin interfaceorg.infinispan.notifications.Listenable
-
getStatus
public org.infinispan.lifecycle.ComponentStatus getStatus()
-
startBatch
public boolean startBatch()
- Specified by:
startBatchin interfaceorg.infinispan.commons.api.BatchingCache
-
endBatch
public void endBatch(boolean successful)
- Specified by:
endBatchin interfaceorg.infinispan.commons.api.BatchingCache
-
keySet
public org.infinispan.CacheSet<K> keySet()
-
values
public org.infinispan.CacheCollection<V> values()
-
putForExternalRead
public void putForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit)
-
putForExternalRead
public void putForExternalRead(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit)
-
addListenerAsync
public CompletionStage<Void> addListenerAsync(Object listener)
- Specified by:
addListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
addListenerAsync
public <C> CompletionStage<Void> addListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter)
-
addFilteredListenerAsync
public <C> CompletionStage<Void> addFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter, Set<Class<? extends Annotation>> filterAnnotations)
-
addStorageFormatFilteredListenerAsync
public <C> CompletionStage<Void> addStorageFormatFilteredListenerAsync(Object listener, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter, org.infinispan.notifications.cachelistener.filter.CacheEventConverter<? super K,? super V,C> converter, Set<Class<? extends Annotation>> filterAnnotations)
-
removeListenerAsync
public CompletionStage<Void> removeListenerAsync(Object listener)
- Specified by:
removeListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
-