-
Notifications
You must be signed in to change notification settings - Fork 38
Josh/persistent buckter #8
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
Conversation
try { | ||
events.add(new Pair<>(itemId, new Event(new URL(url)))); | ||
} catch (MalformedURLException e) { | ||
logger.error("Retreived a malformed event from storage", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo Retrieved
Looks good, just one question on whether saving to cache could be a block call |
We should be doing file I/O off the main thread. Let me think about how this should work. |
try { | ||
userExperimentRecord = cache.load(getFileName()); | ||
} catch (FileNotFoundException e) { | ||
logger.info("No persistent bucketer cache found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
user experiment record
LGTM, just two small things to address |
…ound via parcelable
Josh/tweaks
This PR implements the
ProjectWatcher
introduced in this PR in SST Java. It uses the same file cache pattern used by event handler and project watcher.I just build 0.1.69 of SST Java locally and hooked up manually to my android repo. When we launch this will be built from maven. This is useful until the next version of SST Java is published.