Uses of Class
org.springframework.modulith.events.RoutingTarget
Packages that use RoutingTarget
Package
Description
API of the event publication registry abstraction.
Spring Framework extensions to integrate the event publication registry.
-
Uses of RoutingTarget in org.springframework.modulith.events
Methods in org.springframework.modulith.events that return RoutingTargetModifier and TypeMethodDescriptionReturns a newRoutingTarget
with the already configured target and the given key.DefaultEventExternalizationConfiguration.determineTarget
(Object event) EventExternalizationConfiguration.determineTarget
(Object event) Determines theRoutingTarget
for the given event based on the current configuration.EventExternalized.getTarget()
Returns the routing target.(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.toRoutingTarget()
(package private) RoutingTarget
RoutingTarget.verify()
(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.withFallback
(RoutingTarget fallback) (package private) RoutingTarget
Creates a newRoutingTarget
with the same target but the given routing key.RoutingTarget.RoutingTargetBuilder.withoutKey()
Returns a newRoutingTarget
without a key.(package private) RoutingTarget
RoutingTarget.withTarget
(String target) Methods in org.springframework.modulith.events that return types with arguments of type RoutingTargetModifier and TypeMethodDescriptionstatic Function<Object,
Optional<RoutingTarget>> EventExternalizationConfiguration.byApplicationLocalName
(Collection<String> packages) Creates a new routing that uses the application-local type name as targetstatic Function<Object,
RoutingTarget> EventExternalizationConfiguration.byFullyQualifiedTypeName()
Returns aFunction
that looks up the target from the fully-qualified type name of the event's type.Methods in org.springframework.modulith.events with parameters of type RoutingTargetModifier and TypeMethodDescription(package private) RoutingTarget
RoutingTarget.ParsedRoutingTarget.withFallback
(RoutingTarget fallback) Method parameters in org.springframework.modulith.events with type arguments of type RoutingTargetModifier and TypeMethodDescriptionEventExternalizationConfiguration.Router.route
(Class<T> type, Function<T, RoutingTarget> router) Registers a router function for the events of the given specific type.EventExternalizationConfiguration.Router.routeAll
(Function<Object, RoutingTarget> router) Routes all events based on the given function.EventExternalizationConfiguration.Router.routeAllByType
(Function<Class<?>, RoutingTarget> router) Routes all messages based on the event type only.EventExternalizationConfiguration.Router.routeOptional
(Function<Object, Optional<RoutingTarget>> router) Routes by extracting anOptional
route from the event.EventExternalizationConfiguration.Router.routeOptionalByType
(Function<Class<?>, Optional<RoutingTarget>> router) Routes by extracting anOptional
route from the event type.EventExternalizationConfiguration.Selector.selectAndRoute
(Class<T> annotationType, BiFunction<Object, T, RoutingTarget> router) Selects events by the presence of an annotation of the given type and routes based on the given routerBiFunction
that also gets the event type to build up a completeRoutingTarget
.Constructors in org.springframework.modulith.events with parameters of type RoutingTargetModifierConstructorDescriptionEventExternalized
(S event, Object mapped, RoutingTarget target, T brokerResult) Creates a newEventExternalized
event for the given source event, its mapped derivative,RoutingTarget
and broker result. -
Uses of RoutingTarget in org.springframework.modulith.events.support
Fields in org.springframework.modulith.events.support declared as RoutingTargetMethods in org.springframework.modulith.events.support with parameters of type RoutingTargetModifier and TypeMethodDescriptionprotected CompletableFuture<?>
DelegatingEventExternalizer.externalize
(Object payload, RoutingTarget target) protected abstract CompletableFuture<?>
EventExternalizationSupport.externalize
(Object payload, RoutingTarget target) Publish the given payload to the givenRoutingTarget
.static BrokerRouting
BrokerRouting.of
(RoutingTarget target, EvaluationContext context) Constructor parameters in org.springframework.modulith.events.support with type arguments of type RoutingTargetModifierConstructorDescriptionDelegatingEventExternalizer
(EventExternalizationConfiguration configuration, BiFunction<RoutingTarget, Object, CompletableFuture<?>> delegate) Creates a newDelegatingEventExternalizer
for the givenEventExternalizationConfiguration
andBiFunction
implementing the actual externalization.