Enum SourceResponse.Status

    • Enum Constant Detail

      • OK

        public static final SourceResponse.Status OK
        Indicates that the source found new items, and that the pipeline may ask the source for new items again as soon as it is ready.
      • SOURCE_ERROR

        public static final SourceResponse.Status SOURCE_ERROR
        Indicates that an error occurred with the source. It is up to the pipeline to decide whether to try again or not.
      • DONE

        public static final SourceResponse.Status DONE
        Indicates that the source has been exhausted, and will never return any new items. The pipeline should stop asking for new items and terminate.
      • EMPTY

        public static final SourceResponse.Status EMPTY
        Indicates that the source is temporarily empty, but that it may have new items in the future.
    • Method Detail

      • values

        public static SourceResponse.Status[] 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 (SourceResponse.Status c : SourceResponse.Status.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SourceResponse.Status 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