This module contains various examples of code using reactive programming constructs.
Build it the application package using:
> mvn clean package
Run the example using:
> mvn exec:java -D"exec.mainClass"="org.acme.future.Futures"
Replace org.acme.future.Futures
with the example you want to run:
org.acme.future.Futures
- Example using completable futures and completion stagesorg.acme.reactive.GreetingExample
- Example demonstrating eventsorg.acme.reactive.StreamsExample
- Example demonstrating streamsorg.acme.streams.BufferingExample
- Example demonstrating buffer back-pressure strategy (useCTRL+C
to terminate the application after the failure)org.acme.streams.DropExample
- Example demonstrating the drop back-pressure strategy (useCTRL+C
to terminate the application)org.acme.streams.BackPressureExample
- Example demonstrating the Reactive Streams back-pressure (useCTRL+C
to terminate the application after the failure)