From c0aac247c2a07dbcb47c19ce34a097797fd1c5a9 Mon Sep 17 00:00:00 2001 From: Antoine Bastos Date: Fri, 11 Oct 2024 11:15:38 +0200 Subject: [PATCH] exercise 14 README - product IDs curl command --- code/exercise_014_Internal_Channels/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/exercise_014_Internal_Channels/README.md b/code/exercise_014_Internal_Channels/README.md index 4156740..be7e6e4 100644 --- a/code/exercise_014_Internal_Channels/README.md +++ b/code/exercise_014_Internal_Channels/README.md @@ -37,7 +37,7 @@ public class PriceUpdateStreams { } ``` -* Implement the method `public Multi generate()` on the `PriceUpdateStreams` class, and make it return a `Multi` that emits a `PriceUpdate` item *every five seconds*, using a random price between 0 and 100, for each of the products in our database (You can hardcode the product IDs 1 to 7 inclusive) . +* Implement the method `public Multi generate()` on the `PriceUpdateStreams` class, and make it return a `Multi` that emits a `PriceUpdate` item *every five seconds*, using a random price between 0 and 100, for each of the products in our database (You can hardcode the product IDs - use `curl localhost:8080/products` to discover the product IDs saved in the database) . Tip, look at the `Multi.createFrom().ticks()` method! Note that the `print` method has an `@Incoming` annotation that matches the `@Outgoing` from the `generate` method. Running the application should print seven lines to the console every five seconds, each line being a price update for a product. Run the app to try this :)