diff --git a/docs/src/main/asciidoc/spring-cloud-stream-support.adoc b/docs/src/main/asciidoc/spring-cloud-stream-support.adoc index 023239b2..e76e3fc6 100644 --- a/docs/src/main/asciidoc/spring-cloud-stream-support.adoc +++ b/docs/src/main/asciidoc/spring-cloud-stream-support.adoc @@ -363,7 +363,7 @@ public Consumer> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -456,7 +456,7 @@ public Consumer>> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -612,7 +612,7 @@ public Consumer> consume1() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message1 '{}' successfully checkpointed", message)) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -624,7 +624,7 @@ public Consumer> consume2() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message2 '{}' successfully checkpointed", message)) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } ---- @@ -920,7 +920,7 @@ public Consumer> consume() { checkpointer.success() .doOnSuccess(success -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(error -> LOGGER.error("Exception found", error)) - .subscribe(); + .block(); }; } @@ -1112,7 +1112,7 @@ public Consumer> consume1() { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); }; } @@ -1124,7 +1124,7 @@ public Consumer> consume2() { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message.getPayload())) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); }; } diff --git a/docs/src/main/asciidoc/spring-integration-support.adoc b/docs/src/main/asciidoc/spring-integration-support.adoc index 6c53be00..6e249c21 100644 --- a/docs/src/main/asciidoc/spring-integration-support.adoc +++ b/docs/src/main/asciidoc/spring-integration-support.adoc @@ -287,7 +287,7 @@ class Demo { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message)) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); } } ---- @@ -634,7 +634,7 @@ class Demo { checkpointer.success() .doOnSuccess(s -> LOGGER.info("Message '{}' successfully checkpointed", message)) .doOnError(e -> LOGGER.error("Error found", e)) - .subscribe(); + .block(); } } ---- @@ -960,7 +960,7 @@ class Demo { checkpointer.success() .doOnError(Throwable::printStackTrace) .doOnSuccess(t -> LOGGER.info("Message '{}' successfully checkpointed", message)) - .subscribe(); + .block(); } } ----