Watching All Records on an Event Bus

A third way to monitor the bus is to monitor the records passing through the bus.

There are a couple ways to do this. The first way is to create a reader with no topic.

The second way is to register a listener on the bus. This option is arguably better since it bypasses the EventBusReader's buffer.

Here is the complete example.

Mobile Analytics