public static class DefaultEventGateway.Builder extends AbstractEventGateway.Builder
DefaultEventGateways.
The dispatchInterceptors are defaulted to an empty list.
The EventBus is a hard requirement and as such should be provided.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DefaultEventGateway |
build()
Initializes a
DefaultEventGateway as specified through this Builder. |
DefaultEventGateway.Builder |
dispatchInterceptors(List<MessageDispatchInterceptor<? super EventMessage<?>>> dispatchInterceptors)
|
DefaultEventGateway.Builder |
dispatchInterceptors(MessageDispatchInterceptor<? super EventMessage<?>>... dispatchInterceptors)
|
DefaultEventGateway.Builder |
eventBus(EventBus eventBus)
Sets the
EventBus used to publish events. |
validatepublic DefaultEventGateway.Builder eventBus(@Nonnull EventBus eventBus)
AbstractEventGateway.BuilderEventBus used to publish events.eventBus in class AbstractEventGateway.BuildereventBus - an EventBus used to publish eventspublic DefaultEventGateway.Builder dispatchInterceptors(MessageDispatchInterceptor<? super EventMessage<?>>... dispatchInterceptors)
AbstractEventGateway.BuilderList of MessageDispatchInterceptors for EventMessages.
Are invoked when an event is being dispatched.dispatchInterceptors in class AbstractEventGateway.BuilderdispatchInterceptors - which are invoked when an event is being dispatchedpublic DefaultEventGateway.Builder dispatchInterceptors(List<MessageDispatchInterceptor<? super EventMessage<?>>> dispatchInterceptors)
AbstractEventGateway.BuilderList of MessageDispatchInterceptors for EventMessages.
Are invoked when an event is being dispatched.dispatchInterceptors in class AbstractEventGateway.BuilderdispatchInterceptors - which are invoked when an event is being dispatchedpublic DefaultEventGateway build()
DefaultEventGateway as specified through this Builder.DefaultEventGateway as specified through this BuilderCopyright © 2010–2023. All rights reserved.