Re: Subscription onDestroy Callback
Sam Wilson <Sam.Wilson@...>
Hey Reed,
toggle quoted messageShow quoted text
It does seem like onDestroy is intended to be used that way. When the bridge calls onDestroy, it causes OpenMAMA to switch the subscription's state from any of the "ING" states to the "ED" states, which lets the mama subscription be reused. If you enqueue the onDestroy, mamaconsumer_v2 will hang while it is cleaning up. It stops the dispatcher with mama_stop, then waits for all the onDestroy events in consumerShutdown. If the dispatcher is stopped, no queued events can be delivered, so no onDestroy calls are made. Cheers, Sam
On 15-02-20 12:34 PM, Alpert, Reed wrote:
|
|