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() 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.