- .then()
- .doOnSuccess(empty -> log.info("Stored {}", chatHomeService))
- .doOnError(throwable -> log.error("Could not store {}: {}", chatHomeService, throwable));
+ .count()
+ .doOnSuccess(count -> log.info("Stored {} chat-rooms for {}", count, chatHomeService))
+ .doOnError(throwable -> log.error("Could not store {}: {}", chatHomeService, throwable))
+ .then();