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 SummaryModifier and TypeMethodDescriptiondefault booleanWhether to bypass theInvocationContextFactoryand utilize thereadContext(DecoratedCache, int)andwriteContext(DecoratedCache, int)to create theInvocationContextinstance.static InvocationContextreadContext(DecoratedCache<?, ?> cache, int size) Creates anInvocationContextusing the cache instance for a read operation.static InvocationContextwriteContext(DecoratedCache<?, ?> cache, int size) Creates anInvocationContextusing the cache instance for a write operation.
- 
Method Details- 
getComponentRegistryComponentRegistry getComponentRegistry()
- 
bypassInvocationContextFactorydefault boolean bypassInvocationContextFactory()Whether to bypass theInvocationContextFactoryand utilize thereadContext(DecoratedCache, int)andwriteContext(DecoratedCache, int)to create theInvocationContextinstance.- Returns:
- trueto bypass,- false, otherwise.
 
- 
readContextCreates anInvocationContextusing the cache instance for a read operation.- Parameters:
- cache- Decorated cache to create the context.
- size- Number of keys.
- Returns:
- a InvocationContextto utilize for the command execution.
 
- 
writeContextCreates anInvocationContextusing the cache instance for a write operation.- Parameters:
- cache- Decorated cache to create the context.
- size- Number of keys.
- Returns:
- a InvocationContextto utilize for the command execution.
 
 
-