public interface EventBus extends SubscribableMessageSource<EventMessage<?>>, MessageDispatchInterceptorSupport<EventMessage<?>>
EventMessageHandler
,
SimpleEventBus
Modifier and Type | Method and Description |
---|---|
default void |
publish(EventMessage<?>... events)
Publish a collection of events on this bus (one, or multiple).
|
void |
publish(List<? extends EventMessage<?>> events)
Publish a collection of events on this bus (one, or multiple).
|
subscribe
registerDispatchInterceptor
default void publish(EventMessage<?>... 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<? extends EventMessage<?>> 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–2023. All rights reserved.