Package org.axonframework.eventhandling
Class SimpleEventBus
java.lang.Object
org.axonframework.eventhandling.AbstractEventBus
org.axonframework.eventhandling.SimpleEventBus
- All Implemented Interfaces:
EventBus,MessageDispatchInterceptorSupport<EventMessage<?>>,SubscribableMessageSource<EventMessage<?>>
Implementation of the
EventBus that dispatches events in the thread the publishes them.- Since:
- 0.5
- Author:
- Allard Buijze
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimpleEventBus(SimpleEventBus.Builder builder) Instantiate aSimpleEventBusbased on the fields contained in theSimpleEventBus.Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleEventBus.Builderbuilder()Instantiate a Builder to be able to create aSimpleEventBus.Methods inherited from class org.axonframework.eventhandling.AbstractEventBus
afterCommit, commit, intercept, prepareCommit, publish, queuedMessages, registerDispatchInterceptor, subscribe
-
Constructor Details
-
SimpleEventBus
Instantiate aSimpleEventBusbased on the fields contained in theSimpleEventBus.Builder.- Parameters:
builder- theSimpleEventBus.Builderused to instantiate aSimpleEventBusinstance
-
-
Method Details
-
builder
Instantiate a Builder to be able to create aSimpleEventBus.The
MessageMonitoris defaulted to aNoOpMessageMonitor, thequeueCapacitytoInteger.MAX_VALUEand theEventBusSpanFactoryto aDefaultEventBusSpanFactorybacked by aNoOpSpanFactory.- Returns:
- a Builder to be able to create a
SimpleEventBus
-