public enum DisabledCacheWriter extends Enum<DisabledCacheWriter> implements CacheWriter<Object,Object>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Object key) |
void |
deleteAll(Collection<?> keys) |
static <K,V> CacheWriter<K,V> |
get()
Returns a disabled cache writer.
|
static DisabledCacheWriter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisabledCacheWriter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(Cache.Entry<?,?> entry) |
void |
writeAll(Collection<Cache.Entry<?,?>> entries) |
public static final DisabledCacheWriter INSTANCE
public static DisabledCacheWriter[] values()
for (DisabledCacheWriter c : DisabledCacheWriter.values()) System.out.println(c);
public static DisabledCacheWriter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <K,V> CacheWriter<K,V> get()
K - the type of keyV - the type of valuepublic void write(Cache.Entry<?,?> entry)
write in interface CacheWriter<Object,Object>public void writeAll(Collection<Cache.Entry<?,?>> entries)
writeAll in interface CacheWriter<Object,Object>public void delete(Object key)
delete in interface CacheWriter<Object,Object>public void deleteAll(Collection<?> keys)
deleteAll in interface CacheWriter<Object,Object>