Reactive Retry

@Retryable advice can also be applied to methods that return reactive types, such as an RxJava Flowable. For example:

Applying Retry Policy to Reactive Types

  1. @Retryable
  2. public Flowable<Book> streamBooks() {
  3. // ...

Applying Retry Policy to Reactive Types

  1. @Retryable
  2. Flowable<Book> streamBooks() {
  3. // ...

Applying Retry Policy to Reactive Types

  1. @Retryable
  2. open fun streamBooks(): Flowable<Book> {
  3. // ...

In this case @Retryable advice will apply the retry policy to the reactive type.