@FunctionalInterface public interface ObservableSubscriptionChangeListener
ObservableSubscriptioninstance, thus all changes for a given subscription are synchronized with respect to each other.
symbolsRemoved(Set)are decorated depending on the actual implementation class of
DXFeedTimeSeriesSubscriptiondecorates original subscription symbols by wrapping them into instances of
equalsmethod. When one symbol in subscription is replaced by the other one that is equal to it, then the decision of whether to issue
symbolsAddednotification is up to implementation.
DXFeedSubscription uses its implementation of
to figure out what to do in this case. Its default implementation is designed so that repeated
additions of the same
String symbol do not result in notification, while
repeated additions of
FilteredSubscriptionSymbol instances like
However, the implementation that is returned by
DXPublisher.getSubscription can generate repeated
symbolsAdded notifications to
its listeners for the same symbols without the corresponding
notifications in between them. It happens when subscription disappears, cached data is lost, and subscription
reappears again. On each
notification data provider shall
publish the most recent events for
the corresponding symbols.
|Modifier and Type||Method and Description|
Invoked after subscription is closed or when this listener is
Invoked after a collection of symbols is added to a subscription.
Invoked after a collection of symbols is removed from a subscription.
void symbolsAdded(Set<?> symbols)
default void symbolsRemoved(Set<?> symbols)
default void subscriptionClosed()
Copyright © 2002-2021 Devexperts LLC. All Rights Reserved.