-
Notifications
You must be signed in to change notification settings - Fork 12
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
[1.x] Allow to detect Entities which no longer match subscription criteria #1504
Conversation
…respect to the existing `Subscription`s.
…lags. Rename the test definitions to make it specific to `Client` tests. Adjust the destination packages for commands and events.
Handle lifecycle-changing commands.
Migrate to the recently updated domain language. Extract bits to the corresponding `...TestEnv`.
…/restoring and archiving/unarchiving.
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.
LGTM with a couple of minor suggestions.
@Override | ||
StateConsumers.Builder<S> consumers() { | ||
return consumers; | ||
} | ||
|
||
@Override | ||
protected Optional<StreamObserver<SubscriptionUpdate>> chain() { | ||
if(null == nlmConsumer) { |
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.
if(null == nlmConsumer) { | |
if (null == nlmConsumer) { |
/** | ||
* Handles the {@link EntityDeleted} events in respect to the {@code Subscription}. | ||
*/ | ||
final class EntityRemovalHandler extends NoLongerMatchingHandler { |
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.
EntityDeletionHandler
?
This changeset adds an ability to subscribe to changes in Entity states, which make them no longer matching the subscription criteria.
In particular, this will always be the case if Entity becomes archived or deleted.
The new endpoint is available for Spine client under
whenNoLongerMatching()
DSL, and is a part ofClient
's request API:These changes will also become available to other clients (such as
web
-related client), once this PR is merged.The library version is now set to
1.9.0-SNAPSHOT.10
.