Index

A B C D E F G H I M O P R S T V W 
All Classes and Interfaces|All Packages

A

andKey(String) - Method in class org.springframework.modulith.events.RoutingTarget.RoutingTargetBuilder
Returns a new RoutingTarget with the already configured target and the given key.
annotatedAsExternalized() - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
A Predicate to select all events annotated as to be externalized.
AnnotationTargetLookup - Class in org.springframework.modulith.events
An annotation based target lookup strategy to enable caching of the function lookups that involve classpath checks.
ApplicationModuleListener - Annotation Interface in org.springframework.modulith.events
An ApplicationModuleListener is an Async Spring TransactionalEventListener that runs in a transaction itself.

B

BaseConfiguration() - Constructor for class org.springframework.modulith.events.EventExternalizationConfiguration.BaseConfiguration
 
build() - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Creates a new EventExternalizationConfiguration reflecting the current configuration.
builder() - Static method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
Returns a new EventExternalizationConfiguration.Selector instance to build up a new configuration.
byApplicationLocalName(Collection<String>) - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Creates a new routing that uses the application-local type name as target
byExternalizedAnnotations() - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Returns a Function that looks up the target from the supported externalization annotations.
byFullyQualifiedTypeName() - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Returns a Function that looks up the target from the fully-qualified type name of the event's type.

C

compareTo(EventPublication) - Method in interface org.springframework.modulith.events.EventPublication
 
COMPLETED - Enum constant in enum class org.springframework.modulith.events.EventPublication.Status
The processing of the publication has successfully completed.
CompletedEventPublications - Interface in org.springframework.modulith.events
All EventPublications that have already been completed.
condition() - Element in annotation interface org.springframework.modulith.events.ApplicationModuleListener
Spring Expression Language (SpEL) attribute used for making the event handling conditional.

D

DefaultEventExternalizationConfiguration - Class in org.springframework.modulith.events
Default implementation of EventExternalizationConfiguration.
DefaultEventExternalizationConfiguration(Predicate<Object>, Function<Object, Object>, Function<Object, RoutingTarget>, Function<Object, Map<String, Object>>, boolean) - Constructor for class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
defaults() - Static method in class org.springframework.modulith.events.ResubmissionOptions
Creates a new ResubmissionOptions with no bound for in-flight publications, a batch size of 100, no minimum age and including all EventPublication instances.
defaults(String...) - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Creates a default DefaultEventExternalizationConfiguration with the following characteristics: Only events that reside in any of the given packages and that are annotated with any supported Externalized annotation will be considered. Routing information is discovered from the {code Externalized} annotation and, if missing, will default to the application-local name of the event type.
defaults(Collection<String>) - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Creates a default DefaultEventExternalizationConfiguration with the following characteristics: Only events that reside in any of the given packages and that are annotated with any supported Externalized annotation will be considered. Routing information is discovered from the {code Externalized} annotation and, if missing, will default to the application-local name of the event type.
deletePublications(Predicate<EventPublication>) - Method in interface org.springframework.modulith.events.CompletedEventPublications
Deletes all EventPublications matching the given Predicate.
deletePublicationsOlderThan(Duration) - Method in interface org.springframework.modulith.events.CompletedEventPublications
Deletes all EventPublications whose completion date is older than the given Duration.
determineTarget(Object) - Method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
 
determineTarget(Object) - Method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Determines the RoutingTarget for the given event based on the current configuration.
disabled() - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Disables event externalization by not matching any events at all.

E

equals(Object) - Method in class org.springframework.modulith.events.RoutingTarget
 
equals(Object) - Method in class org.springframework.modulith.events.EventExternalized
 
equals(Object) - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
EventExternalizationConfiguration - Interface in org.springframework.modulith.events
Configuration for externalizing application events to messaging infrastructure.
EventExternalizationConfiguration.BaseConfiguration<T extends EventExternalizationConfiguration.BaseConfiguration<T>> - Class in org.springframework.modulith.events
 
EventExternalizationConfiguration.Router - Class in org.springframework.modulith.events
API to define the event routing.
EventExternalizationConfiguration.Selector - Class in org.springframework.modulith.events
API to define which events are supposed to be selected for externalization.
EventExternalized<S,T> - Class in org.springframework.modulith.events
An infrastructure event signaling that an application event has been externalized with a particular, broker-specific result.
EventExternalized(S, Object, RoutingTarget, T) - Constructor for class org.springframework.modulith.events.EventExternalized
Creates a new EventExternalized event for the given source event, its mapped derivative, RoutingTarget and broker result.
EventPublication - Interface in org.springframework.modulith.events
An event publication.
EventPublication.Status - Enum Class in org.springframework.modulith.events
The status of an EventPublication.
Externalized - Annotation Interface in org.springframework.modulith.events
Marks domain events as to be externalized.
externalizing() - Static method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Creates a new EventExternalizationConfiguration.Selector to define which events to externalize.

F

FAILED - Enum constant in enum class org.springframework.modulith.events.EventPublication.Status
The processing ended up in a failure.
FailedEventPublications - Interface in org.springframework.modulith.events
All uncompleted event publications.
findAll() - Method in interface org.springframework.modulith.events.CompletedEventPublications
Returns all EventPublications that have already been completed.
forTarget(String) - Static method in class org.springframework.modulith.events.RoutingTarget
Creates a new RoutingTarget.RoutingTargetBuilder for the given target.

G

get() - Method in class org.springframework.modulith.events.AnnotationTargetLookup
 
getApplicationEvent() - Method in interface org.springframework.modulith.events.EventPublication
Returns the event as Spring ApplicationEvent, effectively wrapping it into a PayloadApplicationEvent in case it's not one already.
getBatchSize() - Method in class org.springframework.modulith.events.ResubmissionOptions
 
getBrokerResult() - Method in class org.springframework.modulith.events.EventExternalized
Returns the broker result.
getCompletionAttempts() - Method in interface org.springframework.modulith.events.EventPublication
Returns the number of completion attempts.
getCompletionDate() - Method in interface org.springframework.modulith.events.EventPublication
Returns the completion date of the publication.
getEvent() - Method in class org.springframework.modulith.events.EventExternalized
Returns the source event.
getEvent() - Method in interface org.springframework.modulith.events.EventPublication
Returns the event that is published.
getEventType() - Method in class org.springframework.modulith.events.EventExternalized
Returns the type of the source event.
getFilter() - Method in class org.springframework.modulith.events.ResubmissionOptions
 
getHeadersFor(Object) - Method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
 
getHeadersFor(Object) - Method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Returns the headers to be attached to the message sent out for the given event.
getIdentifier() - Method in interface org.springframework.modulith.events.EventPublication
Returns a unique identifier for this publication.
getKey() - Method in class org.springframework.modulith.events.RoutingTarget
Returns the routing key.
getKey() - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
getLastResubmissionDate() - Method in interface org.springframework.modulith.events.EventPublication
Returns the last time the EventPublication was resubmitted.
getMapped() - Method in class org.springframework.modulith.events.EventExternalized
Returns the mapped event.
getMaxInFlight() - Method in class org.springframework.modulith.events.ResubmissionOptions
 
getMinAge() - Method in class org.springframework.modulith.events.ResubmissionOptions
 
getPublicationDate() - Method in interface org.springframework.modulith.events.EventPublication
Returns the time the event is published at.
getResolvableType() - Method in class org.springframework.modulith.events.EventExternalized
 
getStatus() - Method in interface org.springframework.modulith.events.EventPublication
Return the publication's EventPublication.Status.
getTarget() - Method in class org.springframework.modulith.events.EventExternalized
Returns the routing target.
getTarget() - Method in class org.springframework.modulith.events.RoutingTarget
Returns the routing target.
getTarget() - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 

H

hasExpression() - Method in class org.springframework.modulith.events.RoutingTarget
Returns whether either the target or key is using a SpEL expression.
hasExternalizedAnnotation(Object) - Static method in class org.springframework.modulith.events.AnnotationTargetLookup
Returns whether the given event is annotated with a supported Externalized annotation.
hashCode() - Method in class org.springframework.modulith.events.EventExternalized
 
hashCode() - Method in class org.springframework.modulith.events.RoutingTarget
 
hashCode() - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
hasKeyExpression() - Method in class org.springframework.modulith.events.RoutingTarget
Returns whether the routing key is a SpEL expression.
headers(Class<T>, Function<T, Map<String, Object>>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers the given type-specific function to extract headers from the events to be externalized.
headers(Function<Object, Map<String, Object>>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers the given function to extract headers from the events to be externalized.

I

id() - Element in annotation interface org.springframework.modulith.events.ApplicationModuleListener
An optional identifier for the listener, defaulting to the fully-qualified signature of the declaring method (e.g.
IncompleteEventPublications - Interface in org.springframework.modulith.events
All uncompleted event publications.
isCompleted() - Method in interface org.springframework.modulith.events.EventPublication
Returns whether the publication of the event has completed.
isPublicationCompleted() - Method in interface org.springframework.modulith.events.EventPublication
Deprecated.
since 1.3, use EventPublication.isCompleted() instead.

M

map(Object) - Method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
 
map(Object) - Method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Map the event to be externalized before publishing it.
mapping(Class<T>, Function<T, Object>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers a type-specific mapping function.
mapping(Function<Object, Object>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers a new mapping Function replacing the old one entirely.

O

of(Class<?>) - Static method in class org.springframework.modulith.events.AnnotationTargetLookup
Returns the AnnotationTargetLookup for the given type.
org.springframework.modulith.events - package org.springframework.modulith.events
API of the event publication registry abstraction.

P

parse(String) - Static method in class org.springframework.modulith.events.RoutingTarget
Creates a new RoutingTarget.ParsedRoutingTarget by parsing the given source.
ParsedRoutingTarget(String, String) - Constructor for class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
PROCESSING - Enum constant in enum class org.springframework.modulith.events.EventPublication.Status
An event listener has picked up the publication and is processing it.
propagation() - Element in annotation interface org.springframework.modulith.events.ApplicationModuleListener
The transaction propagation type.
PUBLISHED - Enum constant in enum class org.springframework.modulith.events.EventPublication.Status
The event publication has been published initially.

R

readOnlyTransaction() - Element in annotation interface org.springframework.modulith.events.ApplicationModuleListener
Whether the transaction to be run for the event listener is supposed to be read-only (default false).
ResubmissionOptions - Class in org.springframework.modulith.events
Options to be considered during EventPublication re-submission.
resubmit(ResubmissionOptions) - Method in interface org.springframework.modulith.events.FailedEventPublications
Initiate the re-submission of failed EventPublication according to the given ResubmissionOptions.
resubmitIncompletePublications(Predicate<EventPublication>) - Method in interface org.springframework.modulith.events.IncompleteEventPublications
Triggers the re-submission of events for which incomplete EventPublications are registered.
resubmitIncompletePublications(ResubmissionOptions) - Method in interface org.springframework.modulith.events.IncompleteEventPublications
Triggers the re-submission of incomplete EventPublications matching the given ResubmissionOptions.
resubmitIncompletePublicationsOlderThan(Duration) - Method in interface org.springframework.modulith.events.IncompleteEventPublications
Triggers the re-submission of events for which incomplete EventPublications are registered that exceed a certain age regarding their original publication date.
RESUBMITTED - Enum constant in enum class org.springframework.modulith.events.EventPublication.Status
A previously failed publication has been resubmitted for processing.
route(Class<T>, Function<T, RoutingTarget>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers a router function for the events of the given specific type.
routeAll(Function<Object, RoutingTarget>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Routes all events based on the given function.
routeAllByType(Function<Class<?>, RoutingTarget>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Routes all messages based on the event type only.
routeKey(Class<T>, Function<T, String>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Registers a BiFunction to resolve the key for a RoutingTarget based on the event instance.
routeMapped() - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Configures the routing to rather use the mapping result rather than the original event instance.
routeOptional(Function<Object, Optional<RoutingTarget>>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Routes by extracting an Optional route from the event.
routeOptionalByType(Function<Class<?>, Optional<RoutingTarget>>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Routes by extracting an Optional route from the event type.
Router(Predicate<Object>) - Constructor for class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Creates a new EventExternalizationConfiguration.Router for the given selector filter.
Router(Predicate<Object>, Function<Object, Object>, Function<Object, RoutingTarget>, Function<Object, Map<String, Object>>, boolean) - Constructor for class org.springframework.modulith.events.EventExternalizationConfiguration.Router
Creates a new EventExternalizationConfiguration.Router for the given selector Predicate and mapper and router Functions.
RoutingTarget - Class in org.springframework.modulith.events
A String-based routing target that supports a :: delimiter to separate the sole target from an additional key.
RoutingTarget.ParsedRoutingTarget - Class in org.springframework.modulith.events
A parsed routing target that can have null target and key values.
RoutingTarget.RoutingTargetBuilder - Class in org.springframework.modulith.events
An intermediary to ultimately create RoutingTarget instances.

S

select(Predicate<Object>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to externalize by applying the given Predicate.
selectAndRoute(Class<T>, BiFunction<Object, T, RoutingTarget>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events by the presence of an annotation of the given type and routes based on the given router BiFunction that also gets the event type to build up a complete RoutingTarget.
selectAndRoute(Class<T>, Function<T, String>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events by the presence of an annotation of the given type and routes based on the given router Function.
selectByAnnotation(Class<? extends Annotation>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to be externalized by inspecting the event type for the given annotation.
selectByPackage(Class<?>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to externalize by the package of the given type and all sub-packages.
selectByPackage(String) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to externalize by the given base package and all sub-packages.
selectByPackagesAndFilter(Collection<String>, Predicate<Object>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to externalize by the given base packages (and their sub-packages) that match the given filter Predicate.
selectByType(Class<?>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to be externalized by type.
selectByType(Predicate<Class<?>>) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
Selects events to be externalized by the given Predicate.
Selector() - Constructor for class org.springframework.modulith.events.EventExternalizationConfiguration.Selector
serializeExternalization - Variable in class org.springframework.modulith.events.EventExternalizationConfiguration.BaseConfiguration
 
serializeExternalization() - Method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
 
serializeExternalization() - Method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Returns whether the event externalization should be serialized to make sure the broker sees the events in the order they were published in the application.
serializeExternalization(boolean) - Method in class org.springframework.modulith.events.EventExternalizationConfiguration.BaseConfiguration
 
spring.modulith.events.api - module spring.modulith.events.api
 
supports(Object) - Method in class org.springframework.modulith.events.DefaultEventExternalizationConfiguration
 
supports(Object) - Method in interface org.springframework.modulith.events.EventExternalizationConfiguration
Whether the configuration supports the given event.

T

target() - Element in annotation interface org.springframework.modulith.events.Externalized
The logical target name.
toRoutingTarget() - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
toString() - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
toString() - Method in class org.springframework.modulith.events.RoutingTarget
 

V

value() - Element in annotation interface org.springframework.modulith.events.Externalized
The logical target name.
valueOf(String) - Static method in enum class org.springframework.modulith.events.EventPublication.Status
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.springframework.modulith.events.EventPublication.Status
Returns an array containing the constants of this enum class, in the order they are declared.
verify() - Method in class org.springframework.modulith.events.RoutingTarget
 

W

withBatchSize(int) - Method in class org.springframework.modulith.events.ResubmissionOptions
Configures the batch size with which to read publications from the database.
withFallback(RoutingTarget) - Method in class org.springframework.modulith.events.RoutingTarget.ParsedRoutingTarget
 
withFilter(Predicate<EventPublication>) - Method in class org.springframework.modulith.events.ResubmissionOptions
Configures which EventPublications to resubmit in a re-submission attempt.
withKey(String) - Method in class org.springframework.modulith.events.RoutingTarget
Creates a new RoutingTarget with the same target but the given routing key.
withMaxInFlight(int) - Method in class org.springframework.modulith.events.ResubmissionOptions
Configures the number of publications that are supposed to be in flight concurrently.
withMinAge(Duration) - Method in class org.springframework.modulith.events.ResubmissionOptions
Configures the minimum age of event publications to qualify for re-submission.
withoutKey() - Method in class org.springframework.modulith.events.RoutingTarget.RoutingTargetBuilder
Returns a new RoutingTarget without a key.
withTarget(String) - Method in class org.springframework.modulith.events.RoutingTarget
 
A B C D E F G H I M O P R S T V W 
All Classes and Interfaces|All Packages