Class RegisterTenantDescriptorHandlerInterceptor

java.lang.Object
io.axoniq.framework.messaging.multitenancy.api.RegisterTenantDescriptorHandlerInterceptor
All Implemented Interfaces:
MessageHandlerInterceptor<Message>

@Internal public class RegisterTenantDescriptorHandlerInterceptor extends Object implements MessageHandlerInterceptor<Message>
A MessageHandlerInterceptor that registers the TenantDescriptor of the handled Message in the ProcessingContext, so components further down the handling chain route to that tenant without inspecting the message again.

The tenant is decided by the shared TenantRouter, the same way every other tenant-routing component decides it. When the router cannot attribute the message to a known tenant, the interceptor logs a warning and proceeds without registering a TenantDescriptor.

Since:
5.3.0
Author:
Jan Galinski, Laura Devriendt