Skip to content
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

RxJava2 support #1

Closed
adauvalter opened this issue Jan 24, 2017 · 8 comments
Closed

RxJava2 support #1

adauvalter opened this issue Jan 24, 2017 · 8 comments
Labels
enhancement New feature or request
Milestone

Comments

@adauvalter
Copy link

adauvalter commented Jan 24, 2017

E.g. subscription to entity changes.

@greenrobot
Copy link
Member

Brainstorming:
The basis will be non-RxJava notifications with listeners #15.

When should notification be emitted? Right after a put() call or once the transaction completed?
--> After put(), changes would only be visible to the current transaction. Also the transaction may be roll backed. So it seems to make much more sense to fire notifications once a TX is committed.

As a first step we could just notify that changes occurred in entity type X without specifying which entities. Or a list of entities types (X,Y, and Z).

Later (if helpful), we could offer change sets (putted and removed entity IDs).

@FabianTerhorst
Copy link

@greenrobot you have any release date for change listener support? This is probably the most used missing feature right now.

@greenrobot
Copy link
Member

@FabianTerhorst Not sure if that is the most wanted feature, but current plans put #15 right after #18 and #18.

@greenrobot greenrobot added the enhancement New feature or request label Jan 28, 2017
@sokarcreative
Copy link

I totally agree with FabienTerhost, a change listener feature would be appreciated

@greenrobot
Copy link
Member

FYI: There's no RxJava extension yet, but please check Version 0.9.8-RC2 (or later). Look for BoxStore.subscribe() and Query.subscribe(). Details follow.

@greenrobot
Copy link
Member

Here is a first version: https://github.com/greenrobot/ObjectBoxRxJava
Would be happy about feedback.

@greenrobot greenrobot added this to the 0.9.8 milestone Feb 21, 2017
@greenrobot
Copy link
Member

@greenrobot
Copy link
Member

I'm sure this can be improved, but there is initial support released in 0.9.8. If you have feedback, please create a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants