Uses of Interface
org.infinispan.Cache
-
Packages that use Cache Package Description org.infinispan This is the core of Infinispan, a distributed, transactional, highly scalable data grid platform.org.infinispan.affinity This package contains theKeyAffinityServiceinterfaces which allow user code to determine mapping of keys onto nodesorg.infinispan.io Provides Infinispan-specific input and output streams, buffers and related utilities.org.infinispan.manager Cache manager API.org.infinispan.notifications.cachelistener.event Cache-specific listener eventsorg.infinispan.persistence Persistence API.org.infinispan.persistence.spi The Persistence SPI.org.infinispan.query Query API.org.infinispan.security Security API.org.infinispan.stream Cache stream processing.org.infinispan.tasks Server tasks API. -
-
Uses of Cache in org.infinispan
Subinterfaces of Cache in org.infinispan Modifier and Type Interface Description interfaceAdvancedCache<K,V>An advanced interface that exposes additional methods not available onCache.Method parameters in org.infinispan with type arguments of type Cache Modifier and Type Method Description <K,V>
voidCacheStream. forEach(java.util.function.BiConsumer<Cache<K,V>,? super R> action)Same asCacheStream.forEach(Consumer)except that it takes aBiConsumerthat provides access to the underlyingCachethat is backing this stream.default <K,V>
voidCacheStream. forEach(org.infinispan.util.function.SerializableBiConsumer<Cache<K,V>,? super R> action)<K,V>
voidDoubleCacheStream. forEach(java.util.function.ObjDoubleConsumer<Cache<K,V>> action)Same asDoubleStream.forEach(DoubleConsumer)except that it takes anObjDoubleConsumerthat provides access to the underlyingCachethat is backing this stream.default <K,V>
voidDoubleCacheStream. forEach(org.infinispan.util.function.SerializableObjDoubleConsumer<Cache<K,V>> action)Same asDoubleCacheStream.forEach(ObjDoubleConsumer)except that theBiConsumermust also implementSerializable<K,V>
voidIntCacheStream. forEach(java.util.function.ObjIntConsumer<Cache<K,V>> action)Same asIntStream.forEach(IntConsumer)except that it takes anObjIntConsumerthat provides access to the underlyingCachethat is backing this stream.default <K,V>
voidIntCacheStream. forEach(org.infinispan.util.function.SerializableObjIntConsumer<Cache<K,V>> action)Same asIntCacheStream.forEach(ObjIntConsumer)except that theBiConsumermust also implementSerializablevoidLockedStream. forEach(java.util.function.BiConsumer<Cache<K,V>,? super org.infinispan.container.entries.CacheEntry<K,V>> biConsumer)Performs an action for each element of this stream on the primary owner of the given key.default voidLockedStream. forEach(org.infinispan.util.function.SerializableBiConsumer<Cache<K,V>,? super org.infinispan.container.entries.CacheEntry<K,V>> biConsumer)Same asLockedStream.forEach(BiConsumer)except that the BiConsumer must also implementSerializable<K,V>
voidLongCacheStream. forEach(java.util.function.ObjLongConsumer<Cache<K,V>> action)Same asLongStream.forEach(LongConsumer)except that it takes anObjLongConsumerthat provides access to the underlyingCachethat is backing this stream.default <K,V>
voidLongCacheStream. forEach(org.infinispan.util.function.SerializableObjLongConsumer<Cache<K,V>> action)Same asLongCacheStream.forEach(ObjLongConsumer)except that theBiConsumermust also implementSerializable<R> java.util.Map<K,R>LockedStream. invokeAll(java.util.function.BiFunction<Cache<K,V>,? super org.infinispan.container.entries.CacheEntry<K,V>,R> biFunction)Performs a BiFunction for each element of this stream on the primary owner of each entry returning a value.default <R> java.util.Map<K,R>LockedStream. invokeAll(org.infinispan.util.function.SerializableBiFunction<Cache<K,V>,? super org.infinispan.container.entries.CacheEntry<K,V>,R> biFunction)Same asLockedStream.invokeAll(BiFunction)except that the BiFunction must also implementSerializable -
Uses of Cache in org.infinispan.affinity
Methods in org.infinispan.affinity with parameters of type Cache Modifier and Type Method Description static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newKeyAffinityService(Cache<K,V> cache, java.util.Collection<org.infinispan.remoting.transport.Address> filter, KeyGenerator<K> keyGenerator, java.util.concurrent.Executor ex, int keyBufferSize)static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newKeyAffinityService(Cache<K,V> cache, java.util.Collection<org.infinispan.remoting.transport.Address> filter, KeyGenerator<K> keyGenerator, java.util.concurrent.Executor ex, int keyBufferSize, boolean start)Creates a service that would only generate keys for addresses specified in filter.static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newKeyAffinityService(Cache<K,V> cache, java.util.concurrent.Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize)static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newKeyAffinityService(Cache<K,V> cache, java.util.concurrent.Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize, boolean start)Creates anKeyAffinityServiceinstance that generates keys mapped to all addresses in the cluster.static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newLocalKeyAffinityService(Cache<K,V> cache, KeyGenerator<K> keyGenerator, java.util.concurrent.Executor ex, int keyBufferSize)static <K,V>
KeyAffinityService<K>KeyAffinityServiceFactory. newLocalKeyAffinityService(Cache<K,V> cache, KeyGenerator<K> keyGenerator, java.util.concurrent.Executor ex, int keyBufferSize, boolean start)Created an service that only generates keys for the local address. -
Uses of Cache in org.infinispan.io
Fields in org.infinispan.io declared as Cache Modifier and Type Field Description protected Cache<java.lang.String,byte[]>GridFilesystem. dataDeprecated.protected Cache<java.lang.String,GridFile.Metadata>GridFilesystem. metadataDeprecated.Constructors in org.infinispan.io with parameters of type Cache Constructor Description GridFilesystem(Cache<java.lang.String,byte[]> data, Cache<java.lang.String,GridFile.Metadata> metadata)Deprecated.GridFilesystem(Cache<java.lang.String,byte[]> data, Cache<java.lang.String,GridFile.Metadata> metadata, int defaultChunkSize)Deprecated.Creates an instance. -
Uses of Cache in org.infinispan.manager
Methods in org.infinispan.manager that return Cache Modifier and Type Method Description <K,V>
Cache<K,V>DefaultCacheManager. createCache(java.lang.String name, Configuration configuration)<K,V>
Cache<K,V>DefaultCacheManagerAdmin. createCache(java.lang.String cacheName, java.lang.String template)<K,V>
Cache<K,V>DefaultCacheManagerAdmin. createCache(java.lang.String cacheName, Configuration configuration)<K,V>
Cache<K,V>EmbeddedCacheManager. createCache(java.lang.String name, Configuration configuration)Creates a cache on the local node using the supplied configuration.<K,V>
Cache<K,V>EmbeddedCacheManagerAdmin. createCache(java.lang.String name, java.lang.String template)Creates a cache on the container using the specified template.<K,V>
Cache<K,V>EmbeddedCacheManagerAdmin. createCache(java.lang.String name, Configuration configuration)Creates a cache across the cluster.<K,V>
Cache<K,V>CacheContainer. getCache()<K,V>
Cache<K,V>CacheContainer. getCache(java.lang.String cacheName)<K,V>
Cache<K,V>DefaultCacheManager. getCache()Retrieves the default cache associated with this cache manager.<K,V>
Cache<K,V>DefaultCacheManager. getCache(java.lang.String cacheName)Retrieves a named cache from the system.<K,V>
Cache<K,V>DefaultCacheManager. getCache(java.lang.String cacheName, boolean createIfAbsent)<K,V>
Cache<K,V>DefaultCacheManager. getCache(java.lang.String cacheName, java.lang.String configurationName)<K,V>
Cache<K,V>DefaultCacheManager. getCache(java.lang.String cacheName, java.lang.String configurationTemplate, boolean createIfAbsent)<K,V>
Cache<K,V>EmbeddedCacheManager. getCache()Retrieves the default cache associated with this cache container.<K,V>
Cache<K,V>EmbeddedCacheManager. getCache(java.lang.String cacheName)Retrieves a cache by name.<K,V>
Cache<K,V>EmbeddedCacheManager. getCache(java.lang.String cacheName, boolean createIfAbsent)Similar toEmbeddedCacheManager.getCache(String), except if has the option to not create the cache if it is not already running.<K,V>
Cache<K,V>EmbeddedCacheManager. getCache(java.lang.String cacheName, java.lang.String configurationName)Deprecated.as of 9.0.<K,V>
Cache<K,V>EmbeddedCacheManager. getCache(java.lang.String cacheName, java.lang.String configurationTemplate, boolean createIfAbsent)Deprecated.as of 9.0.<K,V>
Cache<K,V>DefaultCacheManagerAdmin. getOrCreateCache(java.lang.String cacheName, java.lang.String template)<K,V>
Cache<K,V>DefaultCacheManagerAdmin. getOrCreateCache(java.lang.String cacheName, Configuration configuration)<K,V>
Cache<K,V>EmbeddedCacheManagerAdmin. getOrCreateCache(java.lang.String name, java.lang.String template)Retrieves an existing cache or creates one using the specified template if it doesn't exist<K,V>
Cache<K,V>EmbeddedCacheManagerAdmin. getOrCreateCache(java.lang.String name, Configuration configuration)Retrieves an existing cache or creates one across the cluster using the specified configuration. -
Uses of Cache in org.infinispan.notifications.cachelistener.event
Methods in org.infinispan.notifications.cachelistener.event that return Cache Modifier and Type Method Description Cache<K,V>Event. getCache() -
Uses of Cache in org.infinispan.persistence
Methods in org.infinispan.persistence that return Cache Modifier and Type Method Description CacheInitializationContextImpl. getCache()Constructors in org.infinispan.persistence with parameters of type Cache Constructor Description InitializationContextImpl(StoreConfiguration configuration, Cache cache, KeyPartitioner keyPartitioner, PersistenceMarshaller marshaller, org.infinispan.commons.time.TimeService timeService, ByteBufferFactory byteBufferFactory, org.infinispan.marshall.core.MarshalledEntryFactory marshalledEntryFactory, MarshallableEntryFactory marshallableEntryFactory, java.util.concurrent.ExecutorService executorService, GlobalConfiguration globalConfiguration) -
Uses of Cache in org.infinispan.persistence.spi
Methods in org.infinispan.persistence.spi that return Cache Modifier and Type Method Description CacheInitializationContext. getCache() -
Uses of Cache in org.infinispan.query
Methods in org.infinispan.query with parameters of type Cache Modifier and Type Method Description static <K,V>
ContinuousQuery<K,V>Search. getContinuousQuery(Cache<K,V> cache)Obtain theContinuousQueryobject for a cache.static QueryFactorySearch. getQueryFactory(Cache<?,?> cache)Obtain the query factory for building DSL based Ickle queries.static SearchManagerSearch. getSearchManager(Cache<?,?> cache)Obtain theSearchManagerobject for a cache. -
Uses of Cache in org.infinispan.security
Subinterfaces of Cache in org.infinispan.security Modifier and Type Interface Description interfaceSecureCache<K,V>SecureCache.Methods in org.infinispan.security that return Cache Modifier and Type Method Description Cache<?,?>GlobalSecurityManager. globalACLCache()Returns the global ACL cache -
Uses of Cache in org.infinispan.stream
Methods in org.infinispan.stream with parameters of type Cache Modifier and Type Method Description voidCacheAware. injectCache(Cache<K,V> cache)Method that is invoked when a cache is to be injected. -
Uses of Cache in org.infinispan.tasks
Methods in org.infinispan.tasks that return types with arguments of type Cache Modifier and Type Method Description java.util.Optional<Cache<?,?>>TaskContext. getCache()The default cache.Methods in org.infinispan.tasks with parameters of type Cache Modifier and Type Method Description TaskContextTaskContext. cache(Cache<?,?> cache)The cache against which this task will be executed.
-