read

public Optional<AggregateHistory> read(AggregateReadRequest<I> request)

Forms and returns an AggregateHistory based on the aggregate history.

Return

the record instance or Optional.empty() if the aggregate history is empty

Parameters

request

the aggregate read request based on which to form a record

Throws

if the storage was closed before