InMemoryStorageFactory

public final class InMemoryStorageFactory implements StorageFactory

A factory for in-memory storages.

Functions

Link copied to clipboard
public void close()
Link copied to clipboard
public AggregateStorage<I> createAggregateStorage<I>(ContextSpec context, Class<? extends Aggregate<I, ? extends Object, ? extends Object>> unused)
NOTE: the parameter is unused.
Link copied to clipboard
public CatchUpStorage createCatchUpStorage(boolean multitenant)
Creates a new CatchUpStorage.
Link copied to clipboard
public InboxStorage createInboxStorage(boolean multitenant)
Creates a new InboxStorage.
Link copied to clipboard
public ProjectionStorage<I> createProjectionStorage<I>(ContextSpec context, Class<? extends Projection<I, ? extends Object, ? extends Object>> projectionClass)
Creates a new ProjectionStorage.
Link copied to clipboard
public RecordStorage<I> createRecordStorage<I>(ContextSpec context, Class<? extends Entity<I, ? extends Object>> entityClass)
Creates a new RecordStorage.
Link copied to clipboard
Creates new instance of the factory which would serve the specified context.

Inherited functions

Link copied to clipboard
Creates a new EventStore.