- Notifications
You must be signed in to change notification settings - Fork15
mechero/java-9-flow-reactive
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a simple project that shows how to use Java 9's Flow API to create a Reactive Programming example. It's based on a story: a Magazine Publisher with two different Subscribers, one of them being too slow to pick items.
The guideReactive Programming with Java 9 Flow explains this code and the fictional use case with detail.
ReactiveFlowAppcreates a Publisher using Java 9'sSubmissionPublisher. It implements backpressure and dropping of items by setting a timeout for subscribers.MagazineSubscriberimplementsFlow.Subscriberand let you experiment what happens when subscribers are slow.ColorConsoleAppenderhas nothing to do with Java 9 or reactive programming, is just a utility class to set colors to log messages so the result can be understood easier.
If you find something wrong, feel free to create an issue. Same if you have questions. If you want to help me creating more code examples you canbuy me a coffee.
About
A sample application using Java 9's Flow API and SubmissionPublisher
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
