InMemoryCatchUpStorage

public class InMemoryCatchUpStorage extends AbstractStorage<I, M, R> implements CatchUpStorage

An in-memory implementation of CatchUpStorage.

Constructors

Link copied to clipboard
public void InMemoryCatchUpStorage(boolean multitenant)

Functions

Link copied to clipboard
public Iterator<CatchUpId> index()
Returns an iterator over identifiers of records in the storage.
Link copied to clipboard
public Optional<CatchUp> read(CatchUpReadRequest request)
Reads a record from the storage by the specified request.
Link copied to clipboard
public Iterable<CatchUp> readAll()
Returns an Iterable over all the stored catch-up processes.
Link copied to clipboard
public Iterable<CatchUp> readByType(TypeUrl projectionType)
Reads all the catch-up processes which update the projection of the specified type.
Link copied to clipboard
public void write(CatchUp message)
Writes a message to the storage.
public void write(CatchUpId id, CatchUp record)
Writes a record into the storage.

Inherited functions

Link copied to clipboard
protected void checkNotClosed()
protected void checkNotClosed(String message)
Ensures the storage is not closed.
Link copied to clipboard
public void close()
Closes the storage.
public abstract void close()
Link copied to clipboard
public boolean isClosed()
Tests whether the storage is closed.
Link copied to clipboard
public boolean isMultitenant()
Verifies whether the storage is multitenant.
Link copied to clipboard
public boolean isOpen()
Tests whether the storage is open.