StorageWithLifecycleFlags

public interface StorageWithLifecycleFlags<I, M extends Message, R extends ReadRequest<I>> implements Storage<I, M, R>

A storage that allows to update lifecycle flags of entities.

Inheritors

Functions

Link copied to clipboard
public abstract Optional<LifecycleFlags> readLifecycleFlags(I id)
Reads the lifecycle status for the entity with the passed ID.
Link copied to clipboard
public abstract void writeLifecycleFlags(I id, LifecycleFlags flags)
Writes the lifecycle status for the entity with the passed ID.

Inherited functions

Link copied to clipboard
public abstract void close()
Closes the storage.
public abstract void close()
Link copied to clipboard
public abstract Iterator<I> index()
Returns an iterator over identifiers of records in the storage.
Link copied to clipboard
public abstract boolean isMultitenant()
Verifies whether the storage is multitenant.
Link copied to clipboard
public abstract boolean isOpen()
Verifies whether the storage is open.
Link copied to clipboard
public abstract Optional<M> read(R request)
Reads a record from the storage by the specified request.
Link copied to clipboard
public abstract void write(I id, M record)
Writes a record into the storage.