Interface TenantSequencingPolicy
- All Superinterfaces:
SequencingPolicy<Message>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
SequencingPolicy that sequences messages by the tenant resolved for message processing.
Messages resolving to the same tenant use the same sequence identifier. Messages resolving to different tenants can be handled independently. When no known tenant can be resolved, this policy returns no sequence identifier.
- Since:
- 5.4.0
- Author:
- Jan Galinski
-
Field Summary
Fields inherited from interface org.axonframework.messaging.core.sequencing.SequencingPolicy
BROADCAST -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic TenantSequencingPolicyfrom(TenantRouter tenantRouter) Creates aTenantSequencingPolicybacked by the giventenantRouter.Methods inherited from interface org.axonframework.messaging.core.sequencing.SequencingPolicy
sequenceIdentifierFor
-
Method Details
-
from
Creates aTenantSequencingPolicybacked by the giventenantRouter.- Parameters:
tenantRouter- the tenant router used to resolve known tenants- Returns:
- a tenant sequencing policy backed by the given
tenantRouter
-