Java Magazine, Jan/Feb 2018
ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2018 45 reactive programming Running this example gives a trace in which elements from the various sources may be interleaved Another useful option is zip which takes elements from various sources and assembles them Flowable zip intervals uuids strings i u s String format s s s i u s subscribe obj logger info Received obj It produces a trace similar to this 14 32 40127 RxComputationThreadPool 7 INFO samples RxMerge Received Tick 0 67e7cde0 3f29 49cb b569 e01474676d98 abc 14 32 40224 RxComputationThreadPool 7 INFO samples RxMerge Received Tick 1 a0a0cc83 4bed 4793 9ee0 11baa7707610 def 14 32 40324 RxComputationThreadPool 7 INFO samples RxMerge Received Tick 2 7b7d81b6 cc39 4ec0 a174 fbd61b1d5c71 ghi 14 32 40424 RxComputationThreadPool 7 INFO samples RxMerge Received Tick 3 ae88eb02 52a5 4af7 b9cf 54b29b9cdb85 jkl In real world scenarios zip is useful for gathering data from other parties such as services and then producing a result based on what was received
You must have JavaScript enabled to view digital editions.