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 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
-
getComponentRegistry
ComponentRegistry getComponentRegistry() -
bypassInvocationContextFactory
default boolean bypassInvocationContextFactory()Whether to bypass theInvocationContextFactoryand utilize thereadContext(DecoratedCache, int)andwriteContext(DecoratedCache, int)to create theInvocationContextinstance.- Returns:
trueto bypass,false, otherwise.
-
readContext
Creates 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.
-
writeContext
Creates 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.
-