Interface TenantEventStorageEngineFactory
- All Known Implementing Classes:
AxonServerTenantEventStorageEngineFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory providing the
EventStorageEngine of a single tenant.
The multi-tenant event storage engine calls this factory to obtain the engine to route a tenant's writes and sourcing to. Implementations are expected to create the per-tenant engine lazily and cache it.
Implementations build the tenant's engine and nothing more. Whether that engine also needs the tenant's snapshot
store to serve a snapshot sourcing strategy is decided by the MultiTenantEventStorageEngine, so an
implementation neither
knows nor cares about snapshots.
- Since:
- 4.6.0
- Author:
- Stefan Dragisic, Jakob Hatzl, Laura Devriendt
-
Method Summary
Modifier and TypeMethodDescriptionengineFor(TenantDescriptor tenant) Returns theEventStorageEngineof the giventenant.
-
Method Details
-
engineFor
Returns theEventStorageEngineof the giventenant.- Parameters:
tenant- the tenant to return the event storage engine for- Returns:
- the tenant's
EventStorageEngine
-