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.extendedstats.topK org.infinispan.factories Factories are internal components used to create other components based on a cache's configuration.org.infinispan.interceptors Infinispan is designed around a set of interceptors around a data container.org.infinispan.interceptors.distribution Interceptors dealing with command replication in distributed/replicated mode.org.infinispan.io Provides Infinispan-specific input and output streams, buffers and related utilities.org.infinispan.manager Cache manager API.org.infinispan.notifications.cachelistener.cluster org.infinispan.notifications.cachelistener.event Cache
-specific listener eventsorg.infinispan.persistence Persistence API.org.infinispan.persistence.remote.upgrade org.infinispan.persistence.rest.upgrade org.infinispan.persistence.spi The Persistence SPI.org.infinispan.query Query API.org.infinispan.query.affinity This package contains the implementation of the AffinityIndexManager, that maintains an index divided into shards with storage using the Infinispan Lucene directory.org.infinispan.query.spi org.infinispan.remoting Remote communication between cache instances.org.infinispan.security Security API.org.infinispan.security.actions org.infinispan.server.hotrod org.infinispan.server.hotrod.iteration org.infinispan.server.hotrod.tx.table org.infinispan.server.memcached org.infinispan.spring.embedded org.infinispan.spring.embedded.support org.infinispan.statetransfer Transfer of state to new caches in a cluster.org.infinispan.stream Cache stream processing.org.infinispan.tasks Server tasks API.org.infinispan.upgrade org.infinispan.util General utilities that are not specific to Infinispan, including string parsing helpers, reflection tools and collections and containers designed to supplement the JDK-provided containers.org.infinispan.xsite -
-
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(java.util.function.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(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 anObjDoubleConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,V>
voidDoubleCacheStream. forEach(SerializableObjDoubleConsumer<Cache<K,V>> action)
Same asDoubleCacheStream.forEach(ObjDoubleConsumer)
except that theBiConsumer
must also implementSerializable
<K,V>
voidIntCacheStream. forEach(java.util.function.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(SerializableObjIntConsumer<Cache<K,V>> action)
Same asIntCacheStream.forEach(ObjIntConsumer)
except that theBiConsumer
must also implementSerializable
void
LockedStream. forEach(java.util.function.BiConsumer<Cache<K,V>,? super 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(SerializableBiConsumer<Cache<K,V>,? super 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 anObjLongConsumer
that provides access to the underlyingCache
that is backing this stream.default <K,V>
voidLongCacheStream. forEach(SerializableObjLongConsumer<Cache<K,V>> action)
Same asLongCacheStream.forEach(ObjLongConsumer)
except that theBiConsumer
must also implementSerializable
<R> java.util.Map<K,R>
LockedStream. invokeAll(java.util.function.BiFunction<Cache<K,V>,? super 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(SerializableBiFunction<Cache<K,V>,? super 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<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<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 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, 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.extendedstats.topK
Methods in org.infinispan.extendedstats.topK with parameters of type Cache Modifier and Type Method Description static StreamSummaryContainer
StreamSummaryContainer. getOrCreateStreamLibContainer(Cache cache)
-
Uses of Cache in org.infinispan.factories
Methods in org.infinispan.factories that return Cache Modifier and Type Method Description Cache<K,V>
InternalCacheFactory. createCache(Configuration configuration, GlobalComponentRegistry globalComponentRegistry, java.lang.String cacheName)
This implementation clones the configuration passed in before using it. -
Uses of Cache in org.infinispan.interceptors
Fields in org.infinispan.interceptors declared as Cache Modifier and Type Field Description protected Cache<?,?>
BaseCustomAsyncInterceptor. cache
-
Uses of Cache in org.infinispan.interceptors.distribution
Constructors in org.infinispan.interceptors.distribution with parameters of type Cache Constructor Description BackingKeySet(Cache<K,V> cache, CacheSet<K> keySet, org.infinispan.commands.FlagAffectedCommand command)
-
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. data
Deprecated.protected Cache<java.lang.String,GridFile.Metadata>
GridFilesystem. metadata
Deprecated.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()
This method overrides the underlyingCacheContainer.getCache()
, to return aCache
instead of aBasicCache
<K,V>
Cache<K,V>CacheContainer. getCache(java.lang.String cacheName)
This method overrides the underlyingCacheContainer.getCache(String)
, to return aCache
instead of aBasicCache
<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(java.lang.String cacheName, boolean createIfAbsent)
Retrieves a named cache from the system in the same way thatCacheContainer.getCache(String)
does except that if offers the possibility for the named cache not to be retrieved if it has not yet been started, or if it's been removed after being started.<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.cluster
Methods in org.infinispan.notifications.cachelistener.cluster that return Cache Modifier and Type Method Description Cache<K,V>
ClusterEvent. getCache()
Methods in org.infinispan.notifications.cachelistener.cluster with parameters of type Cache Modifier and Type Method Description void
ClusterListenerReplicateCallable. accept(EmbeddedCacheManager cacheManager, Cache<K,V> cache)
-
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, TimeService timeService, ByteBufferFactory byteBufferFactory, MarshalledEntryFactory marshalledEntryFactory, MarshallableEntryFactory marshallableEntryFactory, java.util.concurrent.ExecutorService executorService, GlobalConfiguration globalConfiguration)
-
Uses of Cache in org.infinispan.persistence.remote.upgrade
Methods in org.infinispan.persistence.remote.upgrade with parameters of type Cache Modifier and Type Method Description void
HotRodTargetMigrator. disconnectSource(Cache<java.lang.Object,java.lang.Object> cache)
long
HotRodTargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache)
long
HotRodTargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache, int readBatch, int threads)
-
Uses of Cache in org.infinispan.persistence.rest.upgrade
Methods in org.infinispan.persistence.rest.upgrade with parameters of type Cache Modifier and Type Method Description void
RestTargetMigrator. disconnectSource(Cache<java.lang.Object,java.lang.Object> cache)
Deprecated.long
RestTargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache)
Deprecated.long
RestTargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache, int readBatch, int threads)
Deprecated. -
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 <K,V>
ContinuousQuery<K,V>Search. getContinuousQuery(Cache<K,V> cache)
Obtain theContinuousQuery
object for a cache.static QueryFactory
Search. getQueryFactory(Cache<?,?> cache)
Obtain the query factory for building DSL based Ickle queries.static SearchManager
Search. getSearchManager(Cache<?,?> cache)
Obtain theSearchManager
object for a cache. -
Uses of Cache in org.infinispan.query.affinity
Methods in org.infinispan.query.affinity with parameters of type Cache Modifier and Type Method Description void
ShardAllocationManagerImpl. inject(Cache<?,?> cache, DistributionManager distributionManager)
-
Uses of Cache in org.infinispan.query.spi
Methods in org.infinispan.query.spi with parameters of type Cache Modifier and Type Method Description void
ProgrammaticSearchMappingProvider. defineMappings(Cache cache, org.hibernate.search.cfg.SearchMapping searchMapping)
Supply some custom programmatic mappings to Hibernate Search. -
Uses of Cache in org.infinispan.remoting
Methods in org.infinispan.remoting with parameters of type Cache Modifier and Type Method Description static LocalInvocation
LocalInvocation. newInstanceFromCache(Cache<?,?> cache, org.infinispan.commands.remote.CacheRpcCommand command)
-
Uses of Cache in org.infinispan.security
Subinterfaces of Cache in org.infinispan.security Modifier and Type Interface Description interface
SecureCache<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.security.actions
Methods in org.infinispan.security.actions that return Cache Modifier and Type Method Description Cache<?,?>
GetCacheAction. run()
Constructors in org.infinispan.security.actions with parameters of type Cache Constructor Description GetClusterExecutorAction(Cache<?,?> cache)
-
Uses of Cache in org.infinispan.server.hotrod
Methods in org.infinispan.server.hotrod that return Cache Modifier and Type Method Description Cache<Address,ServerAddress>
HotRodServer. getAddressCache()
-
Uses of Cache in org.infinispan.server.hotrod.iteration
Methods in org.infinispan.server.hotrod.iteration with parameters of type Cache Modifier and Type Method Description void
IterationFilter. injectDependencies(Cache cache, EncoderRegistry encoderRegistry)
IterationState
DefaultIterationManager. start(Cache cache, java.util.BitSet segments, java.lang.String filterConverterFactory, java.util.List<byte[]> filterConverterParams, MediaType requestValueType, int batch, boolean metadata)
IterationState
IterationManager. start(Cache cache, java.util.BitSet segments, java.lang.String filterConverterFactory, java.util.List<byte[]> filterConverterParams, MediaType valueMediaType, int batch, boolean metadata)
-
Uses of Cache in org.infinispan.server.hotrod.tx.table
Constructors in org.infinispan.server.hotrod.tx.table with parameters of type Cache Constructor Description GlobalTxTable(Cache<CacheXid,TxState> storage, GlobalComponentRegistry gcr)
-
Uses of Cache in org.infinispan.server.memcached
Methods in org.infinispan.server.memcached that return Cache Modifier and Type Method Description Cache<byte[],byte[]>
MemcachedServer. getCache()
Returns the cache being used by the Memcached server -
Uses of Cache in org.infinispan.spring.embedded
Methods in org.infinispan.spring.embedded that return Cache Modifier and Type Method Description Cache<K,V>
InfinispanDefaultCacheFactoryBean. getObject()
Methods in org.infinispan.spring.embedded that return types with arguments of type Cache Modifier and Type Method Description java.lang.Class<? extends Cache>
InfinispanDefaultCacheFactoryBean. getObjectType()
-
Uses of Cache in org.infinispan.spring.embedded.support
Methods in org.infinispan.spring.embedded.support that return Cache Modifier and Type Method Description Cache<K,V>
InfinispanNamedEmbeddedCacheFactoryBean. getObject()
Methods in org.infinispan.spring.embedded.support that return types with arguments of type Cache Modifier and Type Method Description java.lang.Class<? extends Cache>
InfinispanNamedEmbeddedCacheFactoryBean. getObjectType()
-
Uses of Cache in org.infinispan.statetransfer
Fields in org.infinispan.statetransfer with type parameters of type Cache Modifier and Type Field Description protected org.infinispan.factories.impl.ComponentRef<Cache<java.lang.Object,java.lang.Object>>
StateConsumerImpl. cache
-
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 java.util.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. -
Uses of Cache in org.infinispan.upgrade
Methods in org.infinispan.upgrade with parameters of type Cache Modifier and Type Method Description void
TargetMigrator. disconnectSource(Cache<java.lang.Object,java.lang.Object> cache)
Disconnects the target from the source.long
TargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache)
Performs the synchronization of data between source and targetlong
TargetMigrator. synchronizeData(Cache<java.lang.Object,java.lang.Object> cache, int readBatch, int threads)
Performs the synchronization of data between source and target -
Uses of Cache in org.infinispan.util
Method parameters in org.infinispan.util with type arguments of type Cache Modifier and Type Method Description <K,V>
voidAbstractDelegatingCacheStream. forEach(java.util.function.BiConsumer<Cache<K,V>,? super R> action)
Constructors in org.infinispan.util with parameters of type Cache Constructor Description DataContainerRemoveIterator(Cache<K,V> cache)
DataContainerRemoveIterator(Cache<K,V> cache, DataContainer<K,V> dataContainer)
EntryWrapper(Cache<K,V> cache, CacheEntry<K,V> entry)
Creates a new entry wrapper given the cache and entry. -
Uses of Cache in org.infinispan.xsite
Fields in org.infinispan.xsite declared as Cache Modifier and Type Field Description protected Cache<K,V>
AbstractCustomFailurePolicy. cache
Methods in org.infinispan.xsite that return Cache Modifier and Type Method Description Cache
BackupReceiver. getCache()
Cache
BaseBackupReceiver. getCache()
Methods in org.infinispan.xsite with parameters of type Cache Modifier and Type Method Description void
AbstractCustomFailurePolicy. init(Cache cache)
void
CustomFailurePolicy. init(Cache<K,V> cache)
Invoked during the initialization phase.
-