Sending multiple events

If your event source needs to send multiple events in a batch, you can improve performance by sending them with a single call to the sendEvents() method.

Why and when to perform this task

Batching events in this way can also be useful for logical groups of events that should be sent only if an underlying transaction has completed successfully. All of the submitted events are sent as part of a single transaction.

Result

The returned value, eventIds, is an array containing the globally unique identifiers of the sent events.

Each event is validated and checked against the current filter criteria. All of the valid events that pass the filter criteria are then sent using the appropriate mechanism:

Terms of use |

Last updated: Thu Apr 27 15:02:41 2006

(c) Copyright IBM Corporation 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)