Core principles of spring cloud RPC: RxJava responsive programming framework, transformation operator

Conversion operator This section introduces three conversion operators of RxJava: map operator, flatMap operator and scan operator. map operator The map operator accepts a conversion function, applies the conversion function to each element in the message flow ejected by Observable, and the converted result pops up from the message flow. The ...

Posted by diddy1234 on Tue, 18 Jan 2022 19:18:56 +0100

Android okhttp + retro fit + rxjava + hit implements the network request framework

🔥 introduce This paper implements a network request box through okhttp + retrofit + rxjava + hit. 💥 Final code         iWanAndroidService.register(map)                 .compose(ResponseTransformer.obtain())                 .subscribe(registerData -> {                     //Request succeeded                 }, new ErrorConsumer() {     ...

Posted by WhiteHawksan on Wed, 17 Nov 2021 12:30:21 +0100

Basic concept and implementation of RxJava

RxJava is a library that uses observable sequences to form asynchronous, event based programs on the Java VM. In a word, asynchronous. It is an extended observer model. Four basic concepts Observable: observableObserver: observersubscribe: subscribeevent Callback method onNext(): equivalent to onClick() / onEvent()onCompleted(): called ...

Posted by rage2021 on Fri, 22 Oct 2021 14:44:01 +0200