Class WaiterOverrideConfiguration.Builder

    • Method Detail

      • maxAttempts

        public WaiterOverrideConfiguration.Builder maxAttempts​(Integer maxAttempts)
        Define the maximum number of attempts to try before transitioning the waiter to a failure state.
        Parameters:
        maxAttempts - The new maxAttempts value.
        Returns:
        This object for method chaining.
      • waitTimeout

        public WaiterOverrideConfiguration.Builder waitTimeout​(Duration waitTimeout)
        Define the amount of time to wait for the resource to transition to the desired state before timing out. This wait timeout doesn't have strict guarantees on how quickly a request is aborted when the timeout is breached. The request can timeout early if it is determined that the next retry will breach the max wait time. It's disabled by default.
        Parameters:
        waitTimeout - The new waitTimeout value.
        Returns:
        This object for method chaining.