public class CacheBuilder extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
CacheBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
int |
getErrorNum() |
com.alibaba.fastjson.parser.Feature[] |
getFeature() |
redis.clients.jedis.JedisPool |
getJedisPool() |
String |
getLocalCacheType() |
long |
getLocalMaxSize() |
int |
getRedisPort() |
int |
getRedisRetryTime() |
String |
getRedisUrl() |
String |
getRegistryPath() |
String |
getRegistryServer() |
String |
getRegistryType() |
String |
getRemoteCacheType() |
com.alibaba.fastjson.serializer.SerializerFeature[] |
getSerializerFeatures() |
String |
getSerializeType() |
int |
getSessionTimeOut() |
long |
getTtl() |
TimeUnit |
getTtlUnit() |
org.apache.zookeeper.ZooKeeper |
getZooKeeper() |
boolean |
isUseLocalCache() |
boolean |
isUseRegistry() |
boolean |
isUseRemoteCache() |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
void |
setErrorNum(int errorNum) |
void |
setFeature(com.alibaba.fastjson.parser.Feature[] feature) |
void |
setJedisPool(redis.clients.jedis.JedisPool jedisPool) |
void |
setLocalCacheType(String localCacheType) |
void |
setLocalMaxSize(long localMaxSize) |
void |
setRedisPort(int redisPort) |
void |
setRedisRetryTime(int redisRetryTime) |
void |
setRedisUrl(String redisUrl) |
void |
setRegistryPath(String registryPath) |
void |
setRegistryServer(String registryServer) |
void |
setRegistryType(String registryType) |
void |
setRemoteCacheType(String remoteCacheType) |
void |
setSerializerFeatures(com.alibaba.fastjson.serializer.SerializerFeature[] serializerFeatures) |
void |
setSerializeType(String serializeType) |
void |
setSessionTimeOut(int sessionTimeOut) |
void |
setTtl(long ttl) |
void |
setTtlUnit(TimeUnit ttlUnit) |
void |
setUseLocalCache(boolean useLocalCache) |
void |
setUseRegistry(boolean useRegistry) |
void |
setUseRemoteCache(boolean useRemoteCache) |
void |
setZooKeeper(org.apache.zookeeper.ZooKeeper zooKeeper) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic String getSerializeType()
public void setSerializeType(String serializeType)
public String getLocalCacheType()
public void setLocalCacheType(String localCacheType)
public String getRemoteCacheType()
public void setRemoteCacheType(String remoteCacheType)
public String getRegistryType()
public void setRegistryType(String registryType)
public boolean isUseLocalCache()
public void setUseLocalCache(boolean useLocalCache)
public boolean isUseRemoteCache()
public void setUseRemoteCache(boolean useRemoteCache)
public boolean isUseRegistry()
public void setUseRegistry(boolean useRegistry)
public org.apache.zookeeper.ZooKeeper getZooKeeper()
public void setZooKeeper(org.apache.zookeeper.ZooKeeper zooKeeper)
public redis.clients.jedis.JedisPool getJedisPool()
public void setJedisPool(redis.clients.jedis.JedisPool jedisPool)
public String getRedisUrl()
public void setRedisUrl(String redisUrl)
public int getRedisPort()
public void setRedisPort(int redisPort)
public com.alibaba.fastjson.serializer.SerializerFeature[] getSerializerFeatures()
public void setSerializerFeatures(com.alibaba.fastjson.serializer.SerializerFeature[] serializerFeatures)
public com.alibaba.fastjson.parser.Feature[] getFeature()
public void setFeature(com.alibaba.fastjson.parser.Feature[] feature)
public long getTtl()
public void setTtl(long ttl)
public TimeUnit getTtlUnit()
public void setTtlUnit(TimeUnit ttlUnit)
public long getLocalMaxSize()
public void setLocalMaxSize(long localMaxSize)
public String getRegistryServer()
public void setRegistryServer(String registryServer)
public int getSessionTimeOut()
public void setSessionTimeOut(int sessionTimeOut)
public String getRegistryPath()
public void setRegistryPath(String registryPath)
public int getErrorNum()
public void setErrorNum(int errorNum)
public int getRedisRetryTime()
public void setRedisRetryTime(int redisRetryTime)
Copyright © 2017. All rights reserved.