Enum DisabledCacheWriter
java.lang.Object
java.lang.Enum<DisabledCacheWriter>
com.github.benmanes.caffeine.jcache.integration.DisabledCacheWriter
- All Implemented Interfaces:
Serializable,Comparable<DisabledCacheWriter>,CacheWriter<Object,Object>
public enum DisabledCacheWriter
extends Enum<DisabledCacheWriter>
implements CacheWriter<Object,Object>
A cache writer that does nothing.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteAll(Collection<?> keys) static <K,V> CacheWriter <K, V> get()Returns a disabled cache writer.static DisabledCacheWriterReturns 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.voidwrite(Cache.Entry<?, ?> entry) voidwriteAll(Collection<Cache.Entry<?, ?>> entries)
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns a disabled cache writer.- Type Parameters:
K- the type of keyV- the type of value- Returns:
- a cache writer that performs no operation
-
write
- Specified by:
writein interfaceCacheWriter<Object,Object>
-
writeAll
- Specified by:
writeAllin interfaceCacheWriter<Object,Object>
-
delete
- Specified by:
deletein interfaceCacheWriter<Object,Object>
-
deleteAll
- Specified by:
deleteAllin interfaceCacheWriter<Object,Object>
-