Apama 10.3 | Apama Capital Markets Foundation Documentation | Capital Markets Foundation | Market Data Management | Market data subscribers | Setting subscription callbacks
 
Setting subscription callbacks
 
Specifying update callbacks when you subscribe
Adding callbacks to subscriber objects
Sample code for specifying callback when using factory to subscribe
Sample code for specifying callback when using handler to subscribe
Sample code for adding update callbacks to subscriptions
Sample code for adding update callback between subscriptions
Sample code for setting subscription callback
Sample code for subscription update callback invoked in a connection callback
During execution of a CMF application, MDA can execute subscription callbacks that you define at the following points:
*When your application successfully subscribes to market data.
*When your application receives data updates.
*When your application successfully unsubscribes from market data.
*If there is an error when subscribing, receiving data, or unsubscribing.
There are two ways to specify subscription callbacks:
*Specify an update callback when you subscribe. See Specifying update callbacks when you subscribe.
*Add callbacks to a subscriber object. You can add one or more callbacks to be invoked upon successful subscription, delivery of market data, and/or successful unsubscription. See Adding callbacks to subscriber objects.
In addition, you can add an error callback to a subscription. See Overriding default error handling for subscriptions.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.