Package at.jku.ssw.fp.sect10_5
Class Demo4_ObserveOn
- java.lang.Object
-
- at.jku.ssw.fp.sect10_5.Demo4_ObserveOn
-
public class Demo4_ObserveOn extends Object
Demo program showing the how to useObservable.observeOn(io.reactivex.Scheduler)
for asynchronous event handling in consumers.- Author:
- Herbert Praehofer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Demo4_ObserveOn(Observable<WeatherData> weatherDataObservable)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
getWeatherData(URL url)
static void
main(String[] args)
-
-
-
Constructor Detail
-
Demo4_ObserveOn
private Demo4_ObserveOn(Observable<WeatherData> weatherDataObservable)
-
-
Method Detail
-
main
public static void main(String[] args)
-
getWeatherData
private static String getWeatherData(URL url) throws IOException
- Throws:
IOException
-
-