Interface Source.Builder<B extends Source.Builder<B>>

    • Method Detail

      • retryPolicy

        B retryPolicy​(Supplier<? extends RetryPolicy> policy)
        Configure a retry policy to be used with this source. If none is configured, the source is invoked directly with no retries.
        Parameters:
        policy - retry policy to use
        Returns:
        updated builder instance
      • optional

        B optional​(boolean optional)
        Whether the source is optional or not. When configured to be optional, missing underlying data do not cause an exception to be raised.
        Parameters:
        optional - true when this source should be optional
        Returns:
        updated builder instance
      • optional

        default B optional()
        Configure this source to be optional.

        Same as calling optional(true).

        Returns:
        updated builder instance