public enum CacheWriteMode extends Enum<CacheWriteMode>
String.intern() (Intern). Call isStoreByValue()
to determine whether the store method is store-by-value.| Enum Constant and Description |
|---|
Identity |
Intern |
Serialize
Best-effort serialization, e.g. using Serializable or Externizable
|
| Modifier and Type | Method and Description |
|---|---|
static CacheWriteMode |
fromStoreByValue(boolean storeByValue)
Converts the JSR isStoreByValue to the corresponding CacheWriteMode.
|
boolean |
isStoreByValue()
Returns whether this CacheWriteMode is using store-by-value as defined by JSR107.
|
static CacheWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheWriteMode Identity
public static final CacheWriteMode Serialize
public static final CacheWriteMode Intern
public static CacheWriteMode[] values()
for (CacheWriteMode c : CacheWriteMode.values()) System.out.println(c);
public static CacheWriteMode 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 CacheWriteMode fromStoreByValue(boolean storeByValue)
storeByValue - true for store by value, false otherwiseCopyright © 2018 trivago. All rights reserved.