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
Modifier and Type Method Description DataSourcedataSource(Object tenantId)Return the DataSource to use for the given current tenant.default voidshutdown(boolean deregisterDriver)Shutdown all the DataSources.
-
Method Details
-
dataSource
Return the DataSource to use for the given current tenant. -
shutdown
Shutdown all the DataSources.
-