read

public abstract Optional<M> read(R request)

Reads a record from the storage by the specified request.

Return

a record instance or Optional.empty() if there is no record matching this request

Parameters

request

the request to read the record

Throws

if the storage was closed before