Interface ArtifactCacheProvider

    • Method Detail

      • getHttpCache

        @Nullable
        FileCache getHttpCache​(@NotNull
                               URLContentRetriever transport)
        Get cache instance. The instance will use given transport to get content and metadata
        Parameters:
        cacheDir - directory to place cache
        transport - to retrieve content and metadata
        Returns:
        cache instance or null if no instances are available
      • getLocalCache

        @Nullable
        LocalCache getLocalCache()
        Get local cache interface. Interface does not support retrieving content or validation check with digests on remote site.
        Returns:
        local cache interface or null if cache is not available
      • getCacheDir

        @Nullable
        File getCacheDir()
        Get directory used for storing cache
        Returns:
        directory or null if cache is not available
      • addListener

        void addListener​(@NotNull
                         ArtifactsCacheListener listener)
        Add listener for cache events
        Parameters:
        listener -
      • removeListener

        void removeListener​(@NotNull
                            ArtifactsCacheListener listener)
        Remove listener for cache events
        Parameters:
        listener -
      • enabledForCurrentBuild

        boolean enabledForCurrentBuild()