public interface EventGateway extends MessageDispatchInterceptorSupport<EventMessage<?>>
DefaultEventGateway
Modifier and Type | Method and Description |
---|---|
void |
publish(List<?> events)
Publish a collection of events on this bus (one, or multiple).
|
default void |
publish(Object... events)
Publish a collection of events on this bus (one, or multiple).
|
registerDispatchInterceptor
default void publish(Object... events)
Implementations may treat the given events
as a single batch and distribute the events as such to
all subscribed EventListeners.
events
- The collection of events to publishvoid publish(@Nonnull List<?> events)
Implementations may treat the given events
as a single batch and distribute the events as such to all
subscribed EventListeners.
events
- The collection of events to publishCopyright © 2010–2024. All rights reserved.