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

Concurrent addition/removal of consumer refresh listeners. #304

Merged
1 commit merged into from
Oct 17, 2018

Conversation

PaulSandoz
Copy link
Contributor

  • Remove the use of the refresh lock when adding or removing
    refresh listeners. Instead listeners are stored in a de-duped
    CopyOnWriteArrayList and a snapshot (an array) is obtained
    at the start of the refresh that is iterated over. Changes
    (additions/removals) will not take effect until the next
    refresh.

  • Changed HollowDataHolder to be package private as it is not
    part of the public API.

- Remove the use of the refresh lock when adding or removing
refresh listeners.  Instead listeners are stored in a de-duped
CopyOnWriteArrayList and a snapshot (an array) is obtained
at the start of the refresh that is iterated over.  Changes
(additions/removals) will not take effect until the next
refresh.

- Changed HollowDataHolder to be package private as it is not
part of the public API.
@PaulSandoz PaulSandoz self-assigned this Oct 17, 2018
@PaulSandoz PaulSandoz requested review from a user and akhaku October 17, 2018 16:33
@ghost ghost merged commit 61abb3a into Netflix:master Oct 17, 2018
@PaulSandoz PaulSandoz deleted the consumer-listeners-add-remove branch October 17, 2018 21:38
This pull request was closed.
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.

1 participant