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 theKeyAffinityService
interfaces which allow user code to determine mapping of keys onto nodesorg.infinispan.configuration.cache Cache
configurationorg.infinispan.globalstate Global configuration state.org.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 that lets you perform Ickle queries and look up values in caches.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 interface
AdvancedCache<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(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>
voidCacheStream. forEach(org.infinispan.util.function.SerializableBiConsumer<Cache<K,V>,? super R> action)
<K,V>
voidDoubleCacheStream. 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>
voidDoubleCacheStream. forEach(org.infinispan.util.function.SerializableObjDoubleConsumer<Cache<K,V>> action)
Same asDoubleCacheStream.forEach(ObjDoubleConsumer)
except that theBiConsumer
must also implementSerializable
<K,V>
voidIntCacheStream. 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>
voidIntCacheStream. forEach(org.infinispan.util.function.SerializableObjIntConsumer<Cache<K,V>> action)
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>
voidLongCacheStream. 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>
voidLongCacheStream. forEach(org.infinispan.util.function.SerializableObjLongConsumer<Cache<K,V>> action)
Same asLongCacheStream.forEach(ObjLongConsumer)
except that theBiConsumer
must also implementSerializable
<R> Map<K,R>
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.default <R> 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, 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 Modifier and Type Method Description void
CustomFailurePolicy. init(Cache<K,V> cache)
Invoked during the initialization phase. -
Uses of Cache in org.infinispan.globalstate
Methods in org.infinispan.globalstate that return Cache Modifier and Type Method Description Cache<ScopedState,Object>
GlobalConfigurationManager. getStateCache()
Returns the global state cache -
Uses of Cache in org.infinispan.io
Fields in org.infinispan.io declared as Cache Modifier and Type Field Description protected Cache<String,byte[]>
GridFilesystem. data
Deprecated.protected Cache<String,GridFile.Metadata>
GridFilesystem. metadata
Deprecated.Constructors in org.infinispan.io with parameters of type Cache Constructor Description GridFilesystem(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 Cache Modifier and Type Method Description <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>CacheContainer. getCache(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(String cacheName)
Retrieves a named cache from the system.<K,V>
Cache<K,V>DefaultCacheManager. getCache(String cacheName, 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(String cacheName)
Retrieves a cache by name.<K,V>
Cache<K,V>EmbeddedCacheManager. getCache(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>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 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 Cache
InitializationContextImpl. 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, 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 Modifier and Type Method Description Cache
InitializationContext. getCache()
-
Uses of Cache in org.infinispan.query
Methods in org.infinispan.query with parameters of type Cache Modifier and Type Method Description static 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>
IndexerSearch. 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.SearchStatisticsSearch. 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 Modifier and Type Interface Description interface
SecureCache<K,V>
SecureCache. -
Uses of Cache in org.infinispan.stream
Methods in org.infinispan.stream with parameters of type Cache Modifier and Type Method Description void
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 Cache Modifier and Type Method Description Optional<Cache<?,?>>
TaskContext. getCache()
The default cache.Methods in org.infinispan.tasks with parameters of type Cache Modifier and Type Method Description TaskContext
TaskContext. cache(Cache<?,?> cache)
The cache against which this task will be executed.
-