Interface RetryPolicy.Builder

  • Method Details

    • maxRetryAttempts

      RetryPolicy.Builder maxRetryAttempts(Integer maxRetryAttempts)

      Maximum number of retry attempts (0-185, default: 5).

      Parameters:
      maxRetryAttempts - Maximum number of retry attempts (0-185, default: 5).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxEventAgeInSeconds

      RetryPolicy.Builder maxEventAgeInSeconds(Integer maxEventAgeInSeconds)

      Maximum age of an event in seconds before it is discarded (60-86400, default: 300).

      Parameters:
      maxEventAgeInSeconds - Maximum age of an event in seconds before it is discarded (60-86400, default: 300).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryStrategy

      RetryPolicy.Builder retryStrategy(String retryStrategy)

      Strategy for determining which exceptions are retried. Default: ALL.

      Parameters:
      retryStrategy - Strategy for determining which exceptions are retried. Default: ALL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retryStrategy

      RetryPolicy.Builder retryStrategy(RetryStrategy retryStrategy)

      Strategy for determining which exceptions are retried. Default: ALL.

      Parameters:
      retryStrategy - Strategy for determining which exceptions are retried. Default: ALL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: