To retry based on number of attempts, use:

StreamRetry.maxAttempts(5)

To retry based on the age of a record, use:

StreamRetry.maxAge(Duration.minutes(5))

Properties

retryType: RetryType

Methods