Enum ConfigurationCacheOutcome
- All Implemented Interfaces:
Serializable, Comparable<ConfigurationCacheOutcome>, Constable
@Incubating
@NullMarked
public enum ConfigurationCacheOutcome
extends Enum<ConfigurationCacheOutcome>
The outcome of configuration caching for a build, exposed via
BuildResult.getConfigurationCacheOutcome().- Since:
- 9.8.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA configuration cache entry was written but discarded at the end of the build, e.g.The configuration cache was not enabled for the build.No configuration cache entry was stored on purpose: no reusable entry was found while the cache is in read-only mode, or configuration caching was degraded gracefully because incompatible tasks were scheduled.A configuration cache entry was found and fully reused.No reusable configuration cache entry was found and a new entry was stored.The configuration cache was enabled, but the outcome could not be determined, e.g.A configuration cache entry was found and partially reused; the invalidated projects were re-configured and the entry was updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationCacheOutcomeReturns the enum constant of this type with the specified name.static ConfigurationCacheOutcome[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_ENABLED
The configuration cache was not enabled for the build.- Since:
- 9.8.0
-
STORED
No reusable configuration cache entry was found and a new entry was stored.- Since:
- 9.8.0
-
REUSED
A configuration cache entry was found and fully reused.- Since:
- 9.8.0
-
UPDATED
A configuration cache entry was found and partially reused; the invalidated projects were re-configured and the entry was updated.- Since:
- 9.8.0
-
DISCARDED
A configuration cache entry was written but discarded at the end of the build, e.g. because of problems, a serialization error or incompatible tasks.- Since:
- 9.8.0
-
NOT_STORED
No configuration cache entry was stored on purpose: no reusable entry was found while the cache is in read-only mode, or configuration caching was degraded gracefully because incompatible tasks were scheduled.- Since:
- 9.8.0
-
UNDETERMINED
The configuration cache was enabled, but the outcome could not be determined, e.g. because the build failed early.Also reported when the target Gradle version is newer than this TestKit version and reports an outcome that this enum does not know about.
- Since:
- 9.8.0
-
-
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
-