Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using Sequence Numbers | Receipt Sequence Numbers | Explicitly Acknowledging Events
 
Explicitly Acknowledging Events
 
Maintaining Receipt Sequence Number State
By explicitly acknowledging events, your application retains a greater degree of control over what events the Broker will maintain.
Your Broker client can use the awGetEventsWithAck function to obtain one or more events from the Broker while simultaneously acknowledging an event through a specified sequence number. If the sequence number is set to -1, no acknowledgment is sent and you may then use one of the following two functions to explicitly acknowledge the events you choose.
Your Broker client can use the awAcknowledge function to acknowledge the receipt of a single event with the specified sequence number. If a sequence number of zero is specified, all previously unacknowledged events will be acknowledged.
Your Broker client can use the awAcknowledgeThrough function to acknowledge the receipt of all events up to and including the event with the sequence number specified. If a sequence number of zero is specified, all previously unacknowledged events will be acknowledged.
The awDeliverEventsWithAck method can be used by your Broker client to deliver one or more events while, at the same time, acknowledging the receipt of one or more events.
The awPublishEventsWithAck method can be used by your Broker client to publish one or more events while, at the same time, acknowledging the receipt of one or more events.