Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using Sequence Numbers | Receipt Sequence Numbers | Explicitly Acknowledging Events
 
Explicitly Acknowledging Events
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 BrokerClient.getEvents method to obtain one or more events from the Broker while simultaneously acknowledging events through a specified sequence number. If the sequence number is set to -1, no acknowledgment is sent and you can then use one of the following two methods to explicitly acknowledge the events you choose.
Your Broker client can use the BrokerClient.acknowledge method 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 BrokerClient.acknowledgeThrough method 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 BrokerClient.deliverWithAck 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 BrokerClient.publishWithAck 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.