Apama Capital Markets Foundation Documentation : Capital Markets Foundation Guide : Market Data Management : Market data subscribers : Setting subscription callbacks : Specifying update callbacks when you subscribe
Specifying update callbacks when you subscribe
When you subscribe to market data you specify an update callback, which MDA invokes each time your application receives data. The actions you can execute to do this are as follows:
*xxxSubscriberFactory.subscribeCb()
Use a subscriber factory to subscribe to one symbol and specify a callback that MDA invokes each time your application receives data from this subscription. See Sample code for specifying callback when using factory to subscribe.
*xxxSubscriberFactory.multipleSubscribeCb()
Use a subscriber factory to subscribe to a sequence of symbols and specify a callback that MDA invokes each time your application receives data from this subscription.
*xxxSubscriberFactory.create() followed by xxxSubscriber.subscribeCb()
Create a subscriber handler and use it to subscribe to one symbol and specify a callback that MDA invokes each time your application receives data from this subscription. If you added any update callbacks with the addUpdateCallback() action on this subscriber object they are not invoked. Only the callback you specify is executed when market data from this subscription is received. See Sample code for specifying callback when using handler to subscribe.
*xxxSubscriberFactory.create() followed by xxxSubscriber.multipleSubscribeCb()
Create a subscriber handler and use it to subscribe to a sequence of symbols and specify a callback that MDA invokes each time your application receives data from this subscription. If you added any update callbacks with the addUpdateCallback() action on this subscriber object they are not invoked. Only the callback you specify is executed when market data from this subscription is received.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback