Package org.gradle.caching.configuration
Class AbstractBuildCache
- java.lang.Object
-
- org.gradle.caching.configuration.AbstractBuildCache
-
- All Implemented Interfaces:
BuildCache
- Direct Known Subclasses:
DirectoryBuildCache,HttpBuildCache
@Incubating public abstract class AbstractBuildCache extends 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 booleanisEnabled()Returns whether the build cache is enabled.booleanisPush()Returns whether pushing to the build cache is enabled.voidsetEnabled(boolean enabled)Enables or disables the build cache service.voidsetPush(boolean push)Sets whether pushing to the build cache is enabled.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Returns whether the build cache is enabled.- Specified by:
isEnabledin interfaceBuildCache
-
setEnabled
public void setEnabled(boolean enabled)
Enables or disables the build cache service.- Specified by:
setEnabledin interfaceBuildCache
-
isPush
public boolean isPush()
Returns whether pushing to the build cache is enabled.- Specified by:
isPushin interfaceBuildCache
-
setPush
public void setPush(boolean push)
Sets whether pushing to the build cache is enabled.- Specified by:
setPushin interfaceBuildCache
-
-