AggregateReadRequest

public final class AggregateReadRequest<I> implements ReadRequest<I>

A request to read events for a particular Aggregate from AggregateStorage.

A result of processing this request is a record, which satisfies the request criteria.

In addition to a record identifier, this request implementation requires the batch size for event reading to be set. Typically that would be a number of event records to read to encounter the most recent snapshot.

Two requests with the same record ID are considered equal. Batch size is not taken into account, because it should affect only process of reading, but resulting records should be the same.

Parameters

<I>

the type of the record ID

Constructors

Link copied to clipboard
public void AggregateReadRequest(I recordId, int batchSize)

Functions

Link copied to clipboard
public int batchSize()
Obtains the number of events to read per batch.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public I recordId()
Obtains the ID of the requested record.