public enum MissingCacheStrategy extends java.lang.Enum<MissingCacheStrategy>
Enum Constant and Description |
---|
CREATE
Create a new cache when a cache is not found,
without logging any warning about the missing cache.
|
CREATE_WARN
Create a new cache when a cache is not found (see
CREATE )
and also log a warning about the missing cache. |
FAIL
Fail with an exception on missing caches.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExternalRepresentation() |
static MissingCacheStrategy |
interpretSetting(java.lang.Object value) |
static MissingCacheStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MissingCacheStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MissingCacheStrategy FAIL
public static final MissingCacheStrategy CREATE_WARN
CREATE
)
and also log a warning about the missing cache.public static final MissingCacheStrategy CREATE
public static MissingCacheStrategy[] values()
for (MissingCacheStrategy c : MissingCacheStrategy.values()) System.out.println(c);
public static MissingCacheStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getExternalRepresentation()
public static MissingCacheStrategy interpretSetting(java.lang.Object value)
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.