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 newRoutingTargetwith the already configured target and the given key.DefaultEventExternalizationConfiguration.determineTarget(Object event) EventExternalizationConfiguration.determineTarget(Object event) Determines theRoutingTargetfor the given event based on the current configuration.EventExternalized.getTarget()Returns the routing target.(package private) RoutingTargetRoutingTarget.ParsedRoutingTarget.toRoutingTarget()(package private) RoutingTargetRoutingTarget.verify()(package private) RoutingTargetRoutingTarget.ParsedRoutingTarget.withFallback(RoutingTarget fallback) (package private) RoutingTargetCreates a newRoutingTargetwith the same target but the given routing key.RoutingTarget.RoutingTargetBuilder.withoutKey()Returns a newRoutingTargetwithout a key.(package private) RoutingTargetRoutingTarget.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 aFunctionthat 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) RoutingTargetRoutingTarget.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 anOptionalroute from the event.EventExternalizationConfiguration.Router.routeOptionalByType(Function<Class<?>, Optional<RoutingTarget>> router) Routes by extracting anOptionalroute 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 routerBiFunctionthat 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 newEventExternalizedevent for the given source event, its mapped derivative,RoutingTargetand 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 BrokerRoutingBrokerRouting.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 newDelegatingEventExternalizerfor the givenEventExternalizationConfigurationandBiFunctionimplementing the actual externalization.