p2p/host/eventbus/eventbus library
Public API for the EventBus implementation.
This file exports the public API for the EventBus implementation.
Classes
- BasicBus
- BasicBus is a type-based event delivery system
- MetricsTracer
- Metrics for the EventBus implementation.
- NoopMetricsTracer
- A no-op implementation of MetricsTracer that does nothing
- SimpleMetricsTracer
- A simple implementation of MetricsTracer that logs metrics to the console
Functions
-
bufSize(
int size) → SubscriptionOpt - Option to set the buffer size for a subscription
-
createMetricsTracer(
{bool simple = false}) → MetricsTracer - Creates a new MetricsTracer
-
name(
String name) → SubscriptionOpt - Option to set the name for a subscription
-
stateful(
) → EmitterOpt - Option to make an emitter stateful
-
withMetricsTracer(
MetricsTracer metricsTracer) → BusOption - Option to set the metrics tracer for a bus