public enum CacheResultType extends Enum<CacheResultType>
Enum Constant and Description |
---|
CONTAINS
The cache contains this artifact, but was not fetched
|
ERROR
An error occurred when fetching artifact from cache
|
HIT
Artifact was successfully fetched from cache
|
IGNORED
The rule was uncachable
|
LOCAL_KEY_UNCHANGED_HIT
Artifact cache not queried because the local cache key was unchanged.
|
MISS
Artifact was missing from cache
|
SKIPPED
The cache skipped checking this result
|
SOFT_ERROR
An unexpected exception is thrown when fetching the artifact, which becomes converted to soft
error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSuccess()
Whether the artifact was successfully fetched.
|
static CacheResultType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheResultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
verifyValidFinalType() |
public static final CacheResultType HIT
public static final CacheResultType MISS
public static final CacheResultType ERROR
public static final CacheResultType IGNORED
public static final CacheResultType SKIPPED
public static final CacheResultType CONTAINS
public static final CacheResultType LOCAL_KEY_UNCHANGED_HIT
public static final CacheResultType SOFT_ERROR
public static CacheResultType[] values()
for (CacheResultType c : CacheResultType.values()) System.out.println(c);
public static CacheResultType 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 boolean isSuccess()
public void verifyValidFinalType()