Uses of Interface
org.infinispan.Cache
Packages that use Cache
Package
Description
This is the core of Infinispan, a distributed, transactional, highly scalable data grid
platform.
This package contains the
KeyAffinityService
interfaces which allow user code to determine mapping of keys onto nodesCache
configurationGlobal configuration state.
Provides Infinispan-specific input and output streams, buffers and related utilities.
Cache manager API.
Cache
-specific listener eventsPersistence API.
The Persistence SPI.
Query API that lets you perform Ickle queries and look up values in caches.
Security API.
Cache stream processing.
Server tasks API.
-
Uses of Cache in org.infinispan
Subinterfaces of Cache in org.infinispanModifier and TypeInterfaceDescriptioninterface
AdvancedCache<K,
V> An advanced interface that exposes additional methods not available onCache
.Method parameters in org.infinispan with type arguments of type CacheModifier and TypeMethodDescription<K,
V> void CacheStream.forEach
(BiConsumer<Cache<K, V>, ? super R> action) Same asCacheStream.forEach(Consumer)
except that it takes aBiConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,
V> void CacheStream.forEach
(org.infinispan.util.function.SerializableBiConsumer<Cache<K, V>, ? super R> action) <K,
V> void DoubleCacheStream.forEach
(ObjDoubleConsumer<Cache<K, V>> action) Same asDoubleStream.forEach(DoubleConsumer)
except that it takes anObjDoubleConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,
V> void DoubleCacheStream.forEach
(org.infinispan.util.function.SerializableObjDoubleConsumer<Cache<K, V>> action) Same asDoubleCacheStream.forEach(ObjDoubleConsumer)
except that theBiConsumer
must also implementSerializable
<K,
V> void IntCacheStream.forEach
(ObjIntConsumer<Cache<K, V>> action) Same asIntStream.forEach(IntConsumer)
except that it takes anObjIntConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,
V> void Same asIntCacheStream.forEach(ObjIntConsumer)
except that theBiConsumer
must also implementSerializable
void
LockedStream.forEach
(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 void
LockedStream.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> void LongCacheStream.forEach
(ObjLongConsumer<Cache<K, V>> action) Same asLongStream.forEach(LongConsumer)
except that it takes anObjLongConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,
V> void LongCacheStream.forEach
(org.infinispan.util.function.SerializableObjLongConsumer<Cache<K, V>> action) Same asLongCacheStream.forEach(ObjLongConsumer)
except that theBiConsumer
must also implementSerializable
LockedStream.invokeAll
(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.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 CacheModifier and TypeMethodDescriptionstatic <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Collection<org.infinispan.remoting.transport.Address> filter, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Collection<org.infinispan.remoting.transport.Address> filter, KeyGenerator<K> keyGenerator, 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, Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newKeyAffinityService
(Cache<K, V> cache, Executor ex, KeyGenerator<K> keyGenerator, int keyBufferSize, boolean start) Creates anKeyAffinityService
instance that generates keys mapped to all addresses in the cluster.static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newLocalKeyAffinityService
(Cache<K, V> cache, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize) static <K,
V> KeyAffinityService<K> KeyAffinityServiceFactory.newLocalKeyAffinityService
(Cache<K, V> cache, KeyGenerator<K> keyGenerator, Executor ex, int keyBufferSize, boolean start) Created an service that only generates keys for the local address. -
Uses of Cache in org.infinispan.configuration.cache
Methods in org.infinispan.configuration.cache with parameters of type Cache -
Uses of Cache in org.infinispan.globalstate
Methods in org.infinispan.globalstate that return CacheModifier and TypeMethodDescriptionGlobalConfigurationManager.getStateCache()
Returns the global state cache -
Uses of Cache in org.infinispan.io
Fields in org.infinispan.io declared as CacheModifier and TypeFieldDescriptionGridFilesystem.data
Deprecated.protected final Cache<String,
GridFile.Metadata> GridFilesystem.metadata
Deprecated.Constructors in org.infinispan.io with parameters of type CacheModifierConstructorDescriptionGridFilesystem
(Cache<String, byte[]> data, Cache<String, GridFile.Metadata> metadata) Deprecated.GridFilesystem
(Cache<String, byte[]> data, Cache<String, GridFile.Metadata> metadata, int defaultChunkSize) Deprecated.Creates an instance. -
Uses of Cache in org.infinispan.manager
Methods in org.infinispan.manager that return CacheModifier and TypeMethodDescription<K,
V> Cache<K, V> DefaultCacheManager.createCache
(String name, Configuration configuration) <K,
V> Cache<K, V> DefaultCacheManagerAdmin.createCache
(String cacheName, String template) <K,
V> Cache<K, V> DefaultCacheManagerAdmin.createCache
(String cacheName, Configuration configuration) <K,
V> Cache<K, V> EmbeddedCacheManager.createCache
(String name, Configuration configuration) Creates a cache on the local node using the supplied configuration.<K,
V> Cache<K, V> EmbeddedCacheManagerAdmin.createCache
(String name, String template) Creates a cache on the container using the specified template.<K,
V> Cache<K, V> EmbeddedCacheManagerAdmin.createCache
(String name, Configuration configuration) Creates a cache across the cluster.<K,
V> Cache<K, V> CacheContainer.getCache()
<K,
V> Cache<K, V> <K,
V> Cache<K, V> DefaultCacheManager.getCache()
Retrieves the default cache associated with this cache manager.<K,
V> Cache<K, V> Retrieves a named cache from the system.<K,
V> Cache<K, V> <K,
V> Cache<K, V> EmbeddedCacheManager.getCache()
Retrieves the default cache associated with this cache container.<K,
V> Cache<K, V> Retrieves a cache by name.<K,
V> Cache<K, V> 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> DefaultCacheManagerAdmin.getOrCreateCache
(String cacheName, String template) <K,
V> Cache<K, V> DefaultCacheManagerAdmin.getOrCreateCache
(String cacheName, Configuration configuration) <K,
V> Cache<K, V> EmbeddedCacheManagerAdmin.getOrCreateCache
(String name, 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
(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 -
Uses of Cache in org.infinispan.persistence
Methods in org.infinispan.persistence that return CacheConstructors in org.infinispan.persistence with parameters of type CacheModifierConstructorDescriptionInitializationContextImpl
(StoreConfiguration configuration, Cache cache, KeyPartitioner keyPartitioner, PersistenceMarshaller marshaller, org.infinispan.commons.time.TimeService timeService, ByteBufferFactory byteBufferFactory, MarshallableEntryFactory marshallableEntryFactory, Executor nonBlockingExecutor, GlobalConfiguration globalConfiguration, org.infinispan.util.concurrent.BlockingManager blockingManager, org.infinispan.util.concurrent.NonBlockingManager nonBlockingManager) -
Uses of Cache in org.infinispan.persistence.spi
Methods in org.infinispan.persistence.spi that return Cache -
Uses of Cache in org.infinispan.query
Methods in org.infinispan.query with parameters of type CacheModifier and TypeMethodDescriptionstatic CompletionStage<org.infinispan.query.core.stats.SearchStatisticsSnapshot>
Search.getClusteredSearchStatistics
(Cache<?, ?> cache) Returns aggregated search statistics for all nodes in the cluster.static <K,
V> ContinuousQuery<K, V> Search.getContinuousQuery
(Cache<K, V> cache) Obtains theContinuousQuery
object for the cache.static <K,
V> Indexer Search.getIndexer
(Cache<K, V> cache) static QueryFactory
Search.getQueryFactory
(Cache<?, ?> cache) Obtains a query factory to build DSL-based Ickle queries.static <K,
V> org.infinispan.query.core.stats.SearchStatistics Search.getSearchStatistics
(Cache<K, V> cache) Returns search statistics for the local node. -
Uses of Cache in org.infinispan.security
Subinterfaces of Cache in org.infinispan.security -
Uses of Cache in org.infinispan.stream
Methods in org.infinispan.stream with parameters of type CacheModifier and TypeMethodDescriptionvoid
CacheAware.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 CacheMethods in org.infinispan.tasks with parameters of type CacheModifier and TypeMethodDescriptionThe cache against which this task will be executed.