public static enum ITableCache.UpdateStrategy extends java.lang.Enum<ITableCache.UpdateStrategy>
| 枚举常量和说明 |
|---|
always
update no matter whether key exists
|
refresh
reload data if key exists, need
entry implement the reload method |
remove
remove key
|
replace
update only if key exists
|
| 限定符和类型 | 方法和说明 |
|---|---|
<K,V> void |
update(java.util.concurrent.ConcurrentMap<K,V> map,
ITableCache.ImmutableEntry<K,V> entry)
update
entry to map,if {code getValue()} return null,remove key. |
static ITableCache.UpdateStrategy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ITableCache.UpdateStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ITableCache.UpdateStrategy always
public static final ITableCache.UpdateStrategy replace
public static final ITableCache.UpdateStrategy remove
public static final ITableCache.UpdateStrategy refresh
entry implement the reload methodpublic static ITableCache.UpdateStrategy[] values()
for (ITableCache.UpdateStrategy c : ITableCache.UpdateStrategy.values()) System.out.println(c);
public static ITableCache.UpdateStrategy valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException - 如果参数为空值, 则抛出 NullPointerExceptionpublic <K,V> void update(java.util.concurrent.ConcurrentMap<K,V> map, ITableCache.ImmutableEntry<K,V> entry)
entry to map,if {code getValue()} return null,remove key.Copyright © 2019. All Rights Reserved.