Class SequenceDataSource

java.lang.Object
io.ebeaninternal.server.transaction.SequenceDataSource
All Implemented Interfaces:
io.ebean.config.dbplatform.TenantConnectionSource, Wrapper, CommonDataSource, DataSource

public final class SequenceDataSource extends Object implements DataSource, io.ebean.config.dbplatform.TenantConnectionSource
DataSource used for sequence id generation that is multi-tenant aware.

Delegates to the current tenant DataSource via the DataSourceSupplier and additionally implements TenantConnectionSource so the sequence generator can maintain a separate id buffer per tenant and obtain connections routed to a specific tenant (needed for background pre-fetch where the current tenant is not in scope).