Package org.infinispan.cache.impl
Interface InternalCache<K,V>
- All Known Implementing Classes:
AbstractDelegatingAdvancedCache
,AbstractDelegatingCache
,AliasCache
,CacheImpl
,DecoratedCache
,EncoderCache
,SecureCacheImpl
,SimpleCacheImpl
,StatsCollectingCache
public interface InternalCache<K,V>
This interface is used to hold methods that are only available to internal implementations.
- Since:
- 15.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Whether to bypass theInvocationContextFactory
and utilize thereadContext(DecoratedCache, int)
andwriteContext(DecoratedCache, int)
to create theInvocationContext
instance.static InvocationContext
readContext
(DecoratedCache<?, ?> cache, int size) Creates anInvocationContext
using the cache instance for a read operation.static InvocationContext
writeContext
(DecoratedCache<?, ?> cache, int size) Creates anInvocationContext
using the cache instance for a write operation.
-
Method Details
-
getComponentRegistry
ComponentRegistry getComponentRegistry() -
bypassInvocationContextFactory
default boolean bypassInvocationContextFactory()Whether to bypass theInvocationContextFactory
and utilize thereadContext(DecoratedCache, int)
andwriteContext(DecoratedCache, int)
to create theInvocationContext
instance.- Returns:
true
to bypass,false
, otherwise.
-
readContext
Creates anInvocationContext
using the cache instance for a read operation.- Parameters:
cache
- Decorated cache to create the context.size
- Number of keys.- Returns:
- a
InvocationContext
to utilize for the command execution.
-
writeContext
Creates anInvocationContext
using the cache instance for a write operation.- Parameters:
cache
- Decorated cache to create the context.size
- Number of keys.- Returns:
- a
InvocationContext
to utilize for the command execution.
-