BatchEventProcessor is an implementation of eventProcessor that controls the number of events available on each call. It then delegates the actual processing of each event to your eventHandler and signals when the final packet event has been delivered to your event handler.
The idea is that if you want to postpone the publication of an event from your handler, for example. Add a group of events to one larger message.
source share