-
Notifications
You must be signed in to change notification settings - Fork 15.1k
MINOR: Remove types from caching stores #6331
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,6 @@ public interface CachedStateStore<K, V> { | |
| * @param listener | ||
| * @param sendOldValues | ||
| */ | ||
| void setFlushListener(final CacheFlushListener<K, V> listener, | ||
| final boolean sendOldValues); | ||
| boolean setFlushListener(final CacheFlushListener<K, V> listener, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We return
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clever! I tried to do this change a little while ago and got hung up on this point.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. blushing |
||
| final boolean sendOldValues); | ||
| } | ||
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.
The PR replaces a
whileloop with a single statement, does this mean Streams is guaranteed to only ever have one level of aWrappedStateStore?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.
TupleForwarderis part of the DSL and thus we know the wrapping hierarchy, and hence, this should be save. We know that the caching store is either inside metered stores, or there is no caching store.