Your
Broker client has much less flexibility in acknowledging events when it registers callback functions to process events, as described in
Using the Callback Model. All callback functions must either return
1 (true) or
0 (false). If true is returned, the event will automatically be acknowledged. If false is returned, the event is assumed to have not been successfully handled and, therefore, it is not acknowledged.