Class DefaultEventBus

  • All Implemented Interfaces:
    EventBus

    public class DefaultEventBus
    extends Object
    implements EventBus
    The DefaultEventBus provides the default and very efficient implementation of the EventBus.

    It is built on top of a very fast, bounded MPSC (multi-producer single-consumer) queue which allows to quickly send events into the bus without blocking the sender.

    Subscribers of this API are considered to be non-blocking and if they have to blocking tasks need to fan them out into their own thread pool.

    Keep in mind to properly start() and stop(Duration) since it runs in its own thread!