Interface Source

    • Method Detail

      • description

        default String description()
        Short, human-readable summary referring to the underlying source.

        For example, a file path or a URL or any other information that helps the user recognize the underlying origin of the data this Source provides.

        Default is the implementation class simple name with any "Source" suffix removed.

        Returns:
        description of the source
      • exists

        default boolean exists()
        If the underlying data exist at this time. This is to prevent us loading such a source if we know it does not exist.
        Returns:
        true if the source exists, false otherwise
      • retryPolicy

        default Optional<RetryPolicy> retryPolicy()
        Retry policy configured on this config source.
        Returns:
        configured retry policy
      • optional

        default boolean optional()
        Whether this source is optional.
        Returns:
        return true for optional source, returns false by default