类 RedisConnectionMetaCache
java.lang.Object
com.walker.cache.AbstractCacheProvider<T>
com.walker.support.redis.cache.RedisCacheProvider<LongConnectionMeta>
com.walker.tcp.lb.RedisConnectionMetaCache
- 所有已实现的接口:
CacheProvider<LongConnectionMeta>,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<CacheProvider<LongConnectionMeta>>,org.springframework.beans.factory.InitializingBean
连接元数据对象缓存定义。
这仅仅是描述了连接基本信息,不是长连接本身!
- 作者:
- 时克英
-
字段概要
从类继承的字段 com.walker.cache.AbstractCacheProvider
count, logger, userCache从接口继承的字段 org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longClass<?>voidputConnectionMeta(LongConnectionMeta connectionMeta) 缓存一个连接元数据对象,默认:24小时候失效。voidvoidsetExpiredSeconds(long expiredSeconds) 设置缓存失效时间,单位:秒,如果不设置默认:24小时从类继承的方法 com.walker.support.redis.cache.RedisCacheProvider
destroy, getCacheCount, getCacheData, getRedisCache, getRedisRootData, loadDataToCache, provideCacheInstance, putCacheData, putCacheData, reload, removeCacheData, setRedisHelper, updateCacheData从类继承的方法 com.walker.cache.AbstractCacheProvider
afterPropertiesSet, getCache, getCacheList, getCacheParam, getCreateTime, getObject, getObjectType, isLoadPage, isSingleton, isUseRedis, loadPageDataToCache, putCacheList, putCacheList, putCacheListAppend, queryListLimit, removeCacheList, removeCacheList, setCacheParam, setLoadPage, setPageSize, setUseRedis, size, toString
-
构造器详细资料
-
RedisConnectionMetaCache
public RedisConnectionMetaCache()
-
-
方法详细资料
-
getConnectionMeta
-
removeConnectionMeta
-
putConnectionMeta
缓存一个连接元数据对象,默认:24小时候失效。- 参数:
connectionMeta-
-
getProviderName
-
getProviderType
-
getExpiredSeconds
public long getExpiredSeconds() -
setExpiredSeconds
public void setExpiredSeconds(long expiredSeconds) 设置缓存失效时间,单位:秒,如果不设置默认:24小时- 参数:
expiredSeconds-
-