Interface TenantDataSourceProvider

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 TenantDataSourceProvider
For multi-tenancy via DB supply the DataSource given the tenantId.
  • Method Summary

    Modifier and Type Method Description
    DataSource dataSource​(Object tenantId)
    Return the DataSource to use for the given current tenant.
    default void shutdown​(boolean deregisterDriver)
    Shutdown all the DataSources.
  • Method Details

    • dataSource

      Return the DataSource to use for the given current tenant.
    • shutdown

      default void shutdown​(boolean deregisterDriver)
      Shutdown all the DataSources.