Package org.infinispan.stream
Interface CacheAware<K,V>
public interface CacheAware<K,V>
Interface that describes how a cache can be injected into another object. This is useful for cases such as
after an object is deserialized and you must inject a Cache into it.
- Since:
- 8.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectCache
(Cache<K, V> cache) Method that is invoked when a cache is to be injected.
-
Method Details
-
injectCache
Method that is invoked when a cache is to be injected.- Parameters:
cache
- the cache instance tied to the object
-