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
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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) 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) entrySet()voidorg.infinispan.configuration.cache.Configurationorg.infinispan.manager.EmbeddedCacheManagerDeprecated.org.infinispan.lifecycle.ComponentStatusorg.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) removeListenerAsync(Object listener) run()booleanorg.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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, sizeAsyncMethods 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, replaceMethods 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, stopMethods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.infinispan.notifications.FilteringListenable
addFilteredListener, addListener, addStorageFormatFilteredListenerMethods inherited from interface org.infinispan.commons.api.Lifecycle
startMethods inherited from interface org.infinispan.notifications.Listenable
addListener, removeListenerMethods inherited from interface java.util.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, putAll
-
Constructor Details
-
LazyCache
-
-
Method Details
-
run
- Specified by:
runin interfacePrivilegedAction<K>
-
getCacheManager
public org.infinispan.manager.EmbeddedCacheManager getCacheManager() -
getAdvancedCache
-
getCacheConfiguration
public org.infinispan.configuration.cache.Configuration getCacheConfiguration() -
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
-
entrySet
-
keySet
-
values
-
evict
-
putForExternalRead
-
putForExternalRead
-
putForExternalRead
-
addListenerAsync
- Specified by:
addListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-
addListenerAsync
-
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
- Specified by:
removeListenerAsyncin interfaceorg.infinispan.notifications.Listenable
-