Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DON'T MERGE] Initial Rxjava Async [WIP] #357

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

Closed
wants to merge 5 commits into from
Closed

[DON'T MERGE] Initial Rxjava Async [WIP] #357

wants to merge 5 commits into from

Conversation

mashurex
Copy link
Contributor

Changes made:

  • Added RxJava library
  • Changed RequestHandler to use deferred Observables
  • Added some last request time checking to make sure requests don't get throttled
  • Added some retries when InvalidProtoBuffer errors occur
  • Changed PlayerProfile and Inventories classes to utilize the new Observables
  • Added synchronized methods to PokemonGO, PlayerProfile, and Inventories classes for thread safety
  • Merged the latest Development branch changes into my branch

mashurex added 3 commits July 29, 2016 21:58
commit 2b05b26
Author: Angelo Rüggeberg <[email protected]>
Date:   Sat Jul 30 07:43:07 2016 +0200

    Added Util class to get Name for Pokedex Numbers, Also added Translations (#284)

    * Added Util class to get NAme for Pokedex Numbers, Also added Translations for those

    * Adjusted Files According to Pullrequest Review

    * Removed Double License Headeer, Added Missing License Header

commit 65c8819
Author: Mustafa Ashurex <[email protected]>
Date:   Fri Jul 29 22:40:47 2016 -0700

    Cleaned up some doc blocks (#352)
@Danm72
Copy link

Danm72 commented Jul 30, 2016

So awesome. GG @mashurex.

@mashurex
Copy link
Contributor Author

There's a lot more RxJava work that can be done to make it really hum. I didn't subscribe on any particular schedulers or anything and it can be used to manage the cache- which it's currently not. It's a very initial and naive implementation at this point.

@FabianTerhorst
Copy link
Collaborator

In my opinion using rxjava for the async work is almost the best way. It should be totally ok to add rxjava to the project.

@@ -26,34 +26,19 @@
import com.pokegoapi.main.RequestHandler;
import com.pokegoapi.util.SystemTimeImpl;
import com.pokegoapi.util.Time;
import lombok.Getter;
import lombok.Setter;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you remove lombok from this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FabianTerhorst my IDE probably auto-removed it because I HAD made all the get/set synchronized. As I look at them now it seems that I lose them in one of my changes and need to add synchronized back in.

@FabianTerhorst
Copy link
Collaborator

some of the added docs has a different number of spaces, is checkstyle working?

@@ -529,7 +529,7 @@ private void getEdgesInChildrenCells(S2Point a, S2Point b, List<S2CellId> cover,
}
}

/*
/**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be against checkstyle?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran everything against check style, spaces look the same but I added an extra * to make it a docblock comment

@FabianTerhorst
Copy link
Collaborator

pokenames is already merged in dev branch, why is it still in this pr?

@mashurex
Copy link
Contributor Author

I'll clean it up, I think I screwed up my tracking to keep this up to date with Development at the same time.

@mashurex mashurex changed the title Initial Rxjava Async Work [DON'T MERGE] Initial Rxjava Async [WIP] Aug 1, 2016
@mashurex mashurex closed this Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants