public static class DefaultEventGateway.Builder extends AbstractEventGateway.Builder
DefaultEventGateway
s.
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. |
validate
public DefaultEventGateway.Builder eventBus(@Nonnull EventBus eventBus)
AbstractEventGateway.Builder
EventBus
used to publish events.eventBus
in class AbstractEventGateway.Builder
eventBus
- an EventBus
used to publish eventspublic DefaultEventGateway.Builder dispatchInterceptors(MessageDispatchInterceptor<? super EventMessage<?>>... dispatchInterceptors)
AbstractEventGateway.Builder
List
of MessageDispatchInterceptor
s for EventMessage
s.
Are invoked when an event is being dispatched.dispatchInterceptors
in class AbstractEventGateway.Builder
dispatchInterceptors
- which are invoked when an event is being dispatchedpublic DefaultEventGateway.Builder dispatchInterceptors(List<MessageDispatchInterceptor<? super EventMessage<?>>> dispatchInterceptors)
AbstractEventGateway.Builder
List
of MessageDispatchInterceptor
s for EventMessage
s.
Are invoked when an event is being dispatched.dispatchInterceptors
in class AbstractEventGateway.Builder
dispatchInterceptors
- 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.