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.

@FunctionalInterface @Internal public interface TenantEventStorageEngineFactory
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