public abstract class CacheKernel extends Object implements Kernel, org.springframework.beans.factory.InitializingBean
By default, we assume that the objects upon which we evaluate the kernel support the Comparable interface. If not, set the cacheKeyGenerator to a different class (default is SymmetricPairCacheKeyGenerator).
Constructor and Description |
---|
CacheKernel() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
double |
evaluate(Object o1,
Object o2) |
CacheKeyGenerator |
getCacheKeyGenerator() |
net.sf.ehcache.CacheManager |
getCacheManager() |
String |
getCacheName() |
abstract double |
innerEvaluate(Object o1,
Object o2) |
void |
setCacheKeyGenerator(CacheKeyGenerator cacheKeyGenerator) |
void |
setCacheManager(net.sf.ehcache.CacheManager cacheManager) |
void |
setCacheName(String cacheName) |
public CacheKeyGenerator getCacheKeyGenerator()
public void setCacheKeyGenerator(CacheKeyGenerator cacheKeyGenerator)
public net.sf.ehcache.CacheManager getCacheManager()
public String getCacheName()
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
cacheManager
- the cacheManager to setpublic void setCacheName(String cacheName)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.