Interface TenantSupplier

All Known Implementing Classes:
ConfiguredTenantSupplier
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 TenantSupplier
The tenants a background job (the outbox poller, the scheduler, a work-queue runner) must visit, one at a time, with TenantScope.

An empty list means a single-tenant deployment: the job runs once, in whatever context its thread has. Called on every cycle, so an implementation may return a changing list. The default (ConfiguredTenantSupplier) works with or without multi-datasource-utils; define your own bean to replace it.

  • Method Summary

    Modifier and Type
    Method
    Description