Class DefaultWaiterResponse.Builder<T>

    • Method Detail

      • response

        public DefaultWaiterResponse.Builder<T> response​(T response)
        Defines the response received that has matched with the waiter success condition.
        Parameters:
        response - the response
        Returns:
        the chained builder
      • exception

        public DefaultWaiterResponse.Builder<T> exception​(Throwable exception)
        Defines the exception thrown from the waiter operation that has matched with the waiter success condition
        Parameters:
        exception - the exception
        Returns:
        the chained builder
      • attemptsExecuted

        public DefaultWaiterResponse.Builder<T> attemptsExecuted​(Integer attemptsExecuted)
        Defines the number of attempts executed in the waiter operation
        Parameters:
        attemptsExecuted - the number of attempts
        Returns:
        the chained builder