Class EventBus
java.lang.Object
com.knezevic.edaf.v3.core.events.EventBus
- All Implemented Interfaces:
AutoCloseable
Thread-safe event fan-out used as the observability backbone.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EventBus
public EventBus()
-
-
Method Details
-
register
Registers a sink. -
publish
Publishes an event to all registered sinks. -
sinkCount
public int sinkCount()Returns number of currently registered sinks. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-