Questions tagged [rx-java3]

149 questions
0
votes
0 answers

Combining Rxjava with Webflux

I would like to know the way to combine Rxjava with Webflux in springboot. I am working on an application in which I am using Rxjava and I need to make implementation changes, from Single to Mono and from Mono to Single, I would like to know if…
0
votes
0 answers

How to efficiently skip thousands or millions of items with RxJava?

I'm trying to use RxJava to create an Observable (or Flowable) that gets its items from a database table. It should be considered a cold observable, in that each new subscriber can get all available items if it wants. It is also an infinite stream,…
john16384
  • 7,800
  • 2
  • 30
  • 44
0
votes
1 answer

Insert in Room database missing values

I am using RxJava to do the background task and using java, android and its an old project. I am inserting the values in OnComplete in CompletableObserver which is in background thread inside a foreground service. After the insertion operation the…
abby
  • 350
  • 4
  • 21
0
votes
0 answers

RxJava zip operator failed to execute onComplete listener

I want to send multiple API requests, so I'm using RxJava's Zip operator, I want to know the success rate of the API requests to show it to the user, but here, whenever one request getting failed, I couldn't see any logs inside the complete…
FGH
  • 2,900
  • 6
  • 26
  • 59
0
votes
0 answers

In RxJava, wait until getting the all the responses from the Observable.zip()

I'm sending multiple API requests(>1000 requests) using Observable.zip(), see the below implementation, here I want to wait until the last responses arrive, I read the documentation for RxJava, but seems like no such method for waiting until last…
FGH
  • 2,900
  • 6
  • 26
  • 59
0
votes
0 answers

Is there a bounded variant of UnicastProcessor?

The UnicastProcessor requests Long.MAX_VALUE elements on subscription and there is no way to set this while creating the processor. I want to limit the number of requested items (to say 1) and only request next item once the previous items have been…
gGwP
  • 35
  • 1
  • 6
0
votes
1 answer

Unable to create call adapter for io.reactivex.rxjava3.core.Observable

I'm using Retrofit as a network client and sending Multiple APIs using RxJava's zip API, but when I create an instance for Retrofit, I got this error, java.lang.IllegalArgumentException: Unable to create call adapter for…
FGH
  • 2,900
  • 6
  • 26
  • 59
0
votes
0 answers

Using many write operations in RxAndroidBle creates a lot of disposables

I have the following code using an. RxAndroidBle Bluetooth Low Energy Connection: private val connectionDisposable = CompositeDisposable() private fun writeBle(writeCharacteristicUuid: UUID, command: ByteArray) if (bleDevice.connectionState ==…
WeGi
  • 1,908
  • 1
  • 21
  • 33
0
votes
0 answers

How do you close a cold observable gracefully after certain time has elapsed from subscribe?

Assume below code which processes data from a paginatedAPI (external). Flowable process = Flowable.generate(() -> new State(), new BiConsumer>() { void accept() { //get data from upstream…
gGwP
  • 35
  • 1
  • 6
0
votes
2 answers

Custom expiry for replay() operator

I have a Observable stream that when subscribed to, replays the event log of every Snapshot produced for every live entity (and any new Snapshot's after the subscription). This replay can contain multiple Snapshots for the same entity. An…
Cheetah
  • 13,785
  • 31
  • 106
  • 190
0
votes
0 answers

Maintaining cold observable semantics with a hot observable

I have a requirement to read items from an external queue, and persist them to a JDBC store. The items must be processed one-by-one, and the next item must only be read from the external queue once the previous item has been successfully persisted.…
firtydank
  • 165
  • 1
  • 10
0
votes
0 answers

AsyncTask.THREAD_POOL_EXECUTOR deprecated API 30

I'm trying to implement the solution of this answer IdlingResource Espresso with RxJava but AsyncTask.THREAD_POOL_EXECUTOR is deprecated. What I should use instead?
0
votes
1 answer

RxJava subscribe only for specific key

I'm receiving an infinite stream of events, lets say Observable where Event(userId, payload). I have to provide functionality which allows subscribing users for their events. Observable is a hot source, but it doesn't matter as I can…
minizibi
  • 363
  • 2
  • 14
0
votes
1 answer

RxJava Grouped Flowable with Conflation

I' m trying to create a Flow for a fast producer with slow consumer for FX (foreign exchange) prices. The basic idea is that prices coming from the source should be sent to the consumer as fast as possible. The following is important for the working…
firtydank
  • 165
  • 1
  • 10
0
votes
0 answers

how to use rxjava on three parallel polling events with timeout

There are three parallel polling events, polled every 200 milliseconds, and when one of the polls reaches the result, the three polling events stop, or stop after timeout 2s,How to achieve it using rxjava var e1 = Observable.interval(200,…
codinlog
  • 1
  • 1