|
dxFeed Graal CXX API v5.0.0
|
Observable set of subscription symbols. More...
#include <ObservableSubscription.hpp>
Inheritance diagram for ObservableSubscription:Public Member Functions | |
| virtual bool | isClosed ()=0 |
| virtual std::unordered_set< EventTypeEnum > | getEventTypes ()=0 |
| virtual bool | containsEventType (const EventTypeEnum &eventType)=0 |
Returns true if this subscription contains the corresponding event type. | |
| virtual std::size_t | addChangeListener (std::shared_ptr< ObservableSubscriptionChangeListener > listener)=0 |
| Adds subscription change listener. | |
| virtual void | removeChangeListener (std::size_t id)=0 |
| Removes subscription change listener by id. | |
Observable set of subscription symbols.
|
pure virtual |
Adds subscription change listener.
This method does nothing if the subscription is closed. Otherwise, it installs the corresponding listener and immediately invokes ObservableSubscriptionChangeListener::symbolsAdded() on the given listener while holding the lock for this subscription. This way the given listener synchronously receives the existing subscription state and is synchronously notified on all changes in the subscription afterward.
| listener | The subscription change listener. |
Implemented in DXFeedSubscription.
|
pure virtual |
Returns true if this subscription contains the corresponding event type.
| eventType | The type of event that is checked. |
true if this subscription contains the corresponding event type. Implemented in DXFeedSubscription.
|
pure virtual |
Implemented in DXFeedSubscription.
|
pure virtual |
true if this subscription is closed. The observable subscription returned as a result of DXPublisher::getSubscription() is closed when the corresponding DXEndpoint is closed. Implemented in DXFeedSubscription.
|
pure virtual |
Removes subscription change listener by id.
This method does nothing if the listener with the given id was not installed or was already removed as a subscription change listener for this subscription. Otherwise, it removes the corresponding listener and immediately invokes ObservableSubscriptionChangeListener::subscriptionClosed() on the given listener while holding the lock for this subscription.
| id | The subscription change listener id. |
Implemented in DXFeedSubscription.