public enum GuavaCacheFactory extends Enum<GuavaCacheFactory> implements CacheFactory
| 枚举常量和说明 |
|---|
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
GuavaCache |
getCache(String cacheName) |
GuavaCache |
getCache(String cacheName,
boolean skipNull) |
Map<String,? extends AbsCache> |
getMap() |
GuavaCache |
register(CacheName cacheName) |
GuavaCache |
register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds)
timeToLiveSeconds和timeToIdleSeconds不允许同时为null
|
<T> GuavaCache |
register(String cacheName,
Long timeToLiveSeconds,
Long timeToIdleSeconds,
RemovalListenerWrapper<T> removalListenerWrapper) |
static GuavaCacheFactory |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static GuavaCacheFactory[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final GuavaCacheFactory INSTANCE
public static GuavaCacheFactory[] values()
for (GuavaCacheFactory c : GuavaCacheFactory.values()) System.out.println(c);
public static GuavaCacheFactory valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public GuavaCache register(String cacheName, Long timeToLiveSeconds, Long timeToIdleSeconds)
register 在接口中 CacheFactorycacheName - timeToLiveSeconds - timeToIdleSeconds - public <T> GuavaCache register(String cacheName, Long timeToLiveSeconds, Long timeToIdleSeconds, RemovalListenerWrapper<T> removalListenerWrapper)
register 在接口中 CacheFactorypublic GuavaCache getCache(String cacheName, boolean skipNull)
getCache 在接口中 CacheFactorypublic GuavaCache getCache(String cacheName)
getCache 在接口中 CacheFactorypublic Map<String,? extends AbsCache> getMap()
getMap 在接口中 CacheFactorypublic GuavaCache register(CacheName cacheName)
register 在接口中 CacheFactoryCopyright © 2024. All rights reserved.