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

consistent subscription values handling; derived new and cached values #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

wwfranczyk
Copy link

LocalGENASubscription and RemoteGENASubscription have inconsistent behaviour.
currentValues are cleared on local (see propertyChange method in LocalGENASubscription) and preserved on remote (see receive method in RemoteGENASubscription) subscription event.

This pull request is one of the possibilities of how a consistency can be preserved while also introduces ways to:

  • get cached state variable values of GENA subscription (still via getCurrentValues)
  • know which of them have changed in the last event (via eventReceived method modification)

import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not change import orders.

@ened
Copy link
Contributor

ened commented Mar 16, 2016

Thanks for the PR. Do you mind adding tests for the new code added?

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.

2 participants