Classes Files

Wombat::MamaSendCompleteCallback

Provides an object-oriented callback interface for MamaPublisher’s sendWithThrottle and sendFromInboxWithThrottle methods

Public Functions

  Name
void onSendComplete(MamaPublisher publisher, MamaMsg message, MamaStatus.mamaStatus status, object closure)
Prototype for callback invoked when a message sent with either mamaPublisher_sendWithThrottle() or mamaPublisher_sendFromInboxWithThrottle() has been sent from the throttle queue.

Public Functions Documentation

function onSendComplete

void onSendComplete(
    MamaPublisher publisher,
    MamaMsg message,
    MamaStatus.mamaStatus status,
    object closure
)

Prototype for callback invoked when a message sent with either mamaPublisher_sendWithThrottle() or mamaPublisher_sendFromInboxWithThrottle() has been sent from the throttle queue.

Parameters:

  • publisher The publisher object used to send the message.
  • message The mamaMsg which has been sent from the throttle queue.
  • status Whether the message was successfully sent from the throttle. A value of MAMA_STATUS_OK indicates that the send was successful.
  • closure User supplied context data.

Messages sent on the throttle queue are no longer destroyed by the API. It is the responsibility of the application developer to manage the lifecycle of any messages sent on the throttle.


Updated on 2023-03-31 at 15:29:33 +0100