public enum MissingCacheStrategy extends 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 |
---|---|
String |
getExternalRepresentation() |
static MissingCacheStrategy |
interpretSetting(Object value) |
static MissingCacheStrategy |
valueOf(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(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 String getExternalRepresentation()
public static MissingCacheStrategy interpretSetting(Object value)
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.