Class ArtifactTransferPolicies


  • public final class ArtifactTransferPolicies
    extends Object
    • Constructor Detail

      • ArtifactTransferPolicies

        public ArtifactTransferPolicies()
    • Method Detail

      • forLocalArtifacts

        public static ArtifactTransferPolicy forLocalArtifacts()
        Returns the ArtifactTransferPolicy optimized for artifacts stored in the local file system. A provider with this policy will use the canonical format (if available) when asked for an artifact, avoiding unnecessary pack200 decompression operations.
      • forRemoteArtifacts

        public static ArtifactTransferPolicy forRemoteArtifacts()
        Returns the ArtifactTransferPolicy optimized for artifacts stored on a remote server. A provider with this policy will internally use the size-optimized pack200 format (if available) when asked for an artifact. This policy leads to a lower network usage, at the cost of a higher CPU usage.