Package io.axoniq.framework.messaging.multitenancy.configuration
@NullMarked
package io.axoniq.framework.messaging.multitenancy.configuration
Contains the configuration components wiring multi-tenancy defaults into an Axon Framework application.
-
ClassDescription
ConfigurationEnhancerregistering the default multi-tenancy components: the defaultTenantResolver, which resolves the tenant from message metadata, unless a user registered a customTenantResolvertheTenantRouterthat every tenant-routing component shares to decide the tenant of a message theTenantComponentProviderSubscriberto subscribe everyTenantComponentProviderto theTenantProviderat startup theRegisterTenantDescriptorHandlerInterceptorwhich takes the resolvedTenantDescriptorfrom the message and stores it in theProcessingContexttheAttachTenantDescriptorDispatchInterceptorwhich attaches the tenant of the dispatchingProcessingContextonto a dispatched command or query, so it survives a distributed round trip theMultiTenantStreamingProcessorRestarterto restart the running streaming event processors when the set of tenants changes theTenantAwareQueryBusdecorator, scoping subscription-query update emission and completion to the tenant resolved from theProcessingContextConfiguration for theMultiTenantStreamingProcessorRestarter.Restarts the runningStreamingEventProcessorswhenever the set of tenants changes, so a processor streaming across tenants re-opens its stream with the current tenants.