Package org.gradle.caching.configuration
Class AbstractBuildCache
- java.lang.Object
-
- org.gradle.caching.configuration.AbstractBuildCache
-
- All Implemented Interfaces:
BuildCache
- Direct Known Subclasses:
DirectoryBuildCache
,HttpBuildCache
public abstract class AbstractBuildCache extends java.lang.Object implements BuildCache
Base implementation for build cache service configuration.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description AbstractBuildCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Returns whether the build cache is enabled.boolean
isPush()
Returns whether a given build can store outputs in the build cache.void
setEnabled(boolean enabled)
Sets whether the build cache is enabled.void
setPush(boolean push)
Sets whether a given build can store outputs in the build cache.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether the build cache is enabled.- Specified by:
isEnabled
in interfaceBuildCache
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether the build cache is enabled.- Specified by:
setEnabled
in interfaceBuildCache
-
isPush
public boolean isPush()
Returns whether a given build can store outputs in the build cache.- Specified by:
isPush
in interfaceBuildCache
-
setPush
public void setPush(boolean push)
Sets whether a given build can store outputs in the build cache.- Specified by:
setPush
in interfaceBuildCache
-
-