Enum CachePolicy

    • Enum Constant Detail

      • PULL

        @Stability(Experimental)
        public static final CachePolicy PULL
        (experimental) Only download the cache when the job starts, but never upload changes when the job finishes.
      • PUSH

        @Stability(Experimental)
        public static final CachePolicy PUSH
        (experimental) Only upload a cache when the job finishes, but never download the cache when the job starts.
      • PULL_PUSH

        @Stability(Experimental)
        public static final CachePolicy PULL_PUSH
        (experimental) The job downloads the cache when the job starts, and uploads changes to the cache when the job ends.
    • Method Detail

      • values

        public static CachePolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CachePolicy c : CachePolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CachePolicy valueOf​(String name)
        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 name
        NullPointerException - if the argument is null