Interface ValueProcessor
- All Known Implementing Classes:
NoopValueProcessor
public interface ValueProcessor
This processor will be used for wrapping/unwrapping both values and keys within a cache.
It is very important to make sure the implementation is thread-safe and non-blocking. Lock usage may cause
severe performance hit.
wrap(Object) will be called with keys and values passed as parameters to the cache,
unwrap(Object) will be called with the return value of the same operation.
For example using ReadThroughCache.get(Object) method will cause
the execution of wrap(Object) with the key as parameter and unwrap(Object) with the found value as parameter.-
Method Summary
-
Method Details
-
wrap
-
unwrap
-