-
Notifications
You must be signed in to change notification settings - Fork 7.6k
How to checkpoint a Observable returned in mapMany? #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I'll review this and get back to you (probably tomorrow, not tonight). |
I think you are trying to use CheckpointObserver and the filter before it to implement the distinct operator. Does that sound about right? |
looking at http://msdn.microsoft.com/en-us/library/hh211630(v=vs.103).aspx and http://msdn.microsoft.com/en-us/library/hh244310(v=vs.103).aspx i can see how i can filter files that have been seen before, but I am unclear how distinct would aid in doing the checkpoint itself. Could you explain a little bit more? |
Closing out as this is very old ... reopen if you want to discuss again. |
* check * adding streaming * checkpoint on ratelimiter events * added ratelimiter event endpoint tests * added retry events * configurable
I have the following use case:
For each file in a FTP directory
read file line by line
filter comments
parse line into a java object
serialize that obj
send each obj in batches to another component
I also want to make sure I don't process the same files over and over so I first filter all files based off a checkpoint mechanism, and after all the contents of a file have been sent, add that file to the checkpoint.
I have tried to replicate the logic in RxJava the following way:
The above code causes the following error to be passed to onError:
But this works:
Two things: is this a bug in rx? and whats the better way to handle this? (#16 seems like it would really help to replace the EventSender since it really just buffers events before sending them)
The text was updated successfully, but these errors were encountered: