StorageFactory

public interface StorageFactory implements AutoCloseable

A factory for creating storages used by repositories EventStore and Stand.

Inheritors

Functions

Link copied to clipboard
public abstract AggregateStorage<I> createAggregateStorage<I>(ContextSpec context, Class<? extends Aggregate<I, ? extends Object, ? extends Object>> aggregateClass)
Creates a new AggregateStorage.
Link copied to clipboard
public abstract CatchUpStorage createCatchUpStorage(boolean multitenant)
Creates a new CatchUpStorage.
Link copied to clipboard
Creates a new EventStore.
Link copied to clipboard
public abstract InboxStorage createInboxStorage(boolean multitenant)
Creates a new InboxStorage.
Link copied to clipboard
public abstract ProjectionStorage<I> createProjectionStorage<I>(ContextSpec context, Class<? extends Projection<I, ? extends Object, ? extends Object>> projectionClass)
Creates a new ProjectionStorage.
Link copied to clipboard
public abstract RecordStorage<I> createRecordStorage<I>(ContextSpec context, Class<? extends Entity<I, ? extends Object>> entityClass)
Creates a new RecordStorage.

Inherited functions

Link copied to clipboard
public abstract void close()