public class DefaultEventGateway extends AbstractEventGateway implements EventGateway
EventDispatchInterceptors. The Event Dispatch Interceptors can intercept and alter events dispatched on this specific gateway. Typically, this would be used to add gateway specific meta data to the Event.
|Modifier and Type||Class and Description|
A Builder class for
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Instantiate a Builder to be able to create a
Publish a collection of events on this bus (one, or multiple).
getEventBus, processInterceptors, publish, registerDispatchInterceptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected DefaultEventGateway(DefaultEventGateway.Builder builder)
DefaultEventGatewaybased on the fields contained in the
public static DefaultEventGateway.Builder builder()
dispatchInterceptors are defaulted to an empty list.
EventBus is a hard requirement and as such should be provided.
public void publish(List<?> events)
Implementations may treat the given
events as a single batch and distribute the events as such to
all subscribed EventListeners.
Copyright © 2010–2021. All rights reserved.