Package io.ebean.config
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
All Methods Instance Methods Abstract Methods Default Methods 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 Detail
-
dataSource
DataSource dataSource(Object tenantId)
Return the DataSource to use for the given current tenant.
-
shutdown
default void shutdown(boolean deregisterDriver)
Shutdown all the DataSources.
-
-