Interface ReactorEventGateway
- All Superinterfaces:
DescribableComponent
- All Known Implementing Classes:
DefaultReactorEventGateway
Reactor event gateway that runs dispatch interceptors inside the Reactor subscription.
Use this instead of EventGateway when interceptors need
access to Reactor context (e.g., ReactiveSecurityContextHolder).
The interceptor chain is built and executed within the Reactor subscription, ensuring that the Reactor
Context is available throughout the entire dispatch pipeline.
- Since:
- 4.4.2
- Author:
- Milan Savic, Theo Emanuelsson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<Void> Publishes the giveneventsand returns aMonothat completes when publishing is done.default reactor.core.publisher.Mono<Void> Publishes the given list ofeventsand returns aMonothat completes when publishing is done.default reactor.core.publisher.Mono<Void> publish(@Nullable ProcessingContext context, Object... events) Publishes the giveneventswithin the givencontext(if available) and returns aMonothat completes when publishing is done.reactor.core.publisher.Mono<Void> publish(@Nullable ProcessingContext context, List<?> events) Publishes the given list ofeventswithin the givencontext(if available) and returns aMonothat completes when publishing is done.Methods inherited from interface org.axonframework.common.infra.DescribableComponent
describeTo
-
Method Details
-
publish
default reactor.core.publisher.Mono<Void> publish(@Nullable ProcessingContext context, Object... events) Publishes the giveneventswithin the givencontext(if available) and returns aMonothat completes when publishing is done.- Parameters:
context- the processing context, if any, to publish the giveneventsinevents- the events to publish- Returns:
- a
Monocompleting when the events have been published
-
publish
Publishes the given list ofeventswithin the givencontext(if available) and returns aMonothat completes when publishing is done.- Parameters:
context- the processing context, if any, to publish the giveneventsinevents- the events to publish- Returns:
- a
Monocompleting when the events have been published
-
publish
Publishes the giveneventsand returns aMonothat completes when publishing is done.- Parameters:
events- the events to publish- Returns:
- a
Monocompleting when the events have been published - See Also:
-
publish
Publishes the given list ofeventsand returns aMonothat completes when publishing is done.- Parameters:
events- the events to publish- Returns:
- a
Monocompleting when the events have been published - See Also:
-