Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit c0aac24

Browse files
author
Antoine Bastos
committed
exercise 14 README - product IDs curl command
1 parent 5589713 commit c0aac24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/exercise_014_Internal_Channels/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class PriceUpdateStreams {
3737
}
3838
```
3939

40-
* Implement the method `public Multi<PriceUpdate> 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) .
40+
* Implement the method `public Multi<PriceUpdate> 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) .
4141

4242
Tip, look at the `Multi.createFrom().ticks()` method!
4343
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 :)

0 commit comments

Comments
 (0)