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.

@FunctionalInterface public interface TenantSequencingPolicy extends SequencingPolicy<Message>
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
  • Method Details

    • from

      static TenantSequencingPolicy from(TenantRouter tenantRouter)
      Creates a TenantSequencingPolicy backed by the given tenantRouter.
      Parameters:
      tenantRouter - the tenant router used to resolve known tenants
      Returns:
      a tenant sequencing policy backed by the given tenantRouter