/** * Reads from the stream of all events kept in the event repository. * * @param version The version to read events from. Versions are monotonically increasing * starting with 0, specifying a version of 0 is equivalent to reading the events * from the beginning of the stream. * @return A result record describing the outcome of the read and the events themselves, or null * if no events exist in this repository. */ default EventReadResult<T> readAll(final int version) { return readAll(version, Integer.MAX_VALUE); }
/** * Reads from the stream of all events kept in the event repository. * * @param version The version to read events from. Versions are monotonically increasing * starting with 0, specifying a version of 0 is equivalent to reading the events * from the beginning of the stream. * @return A result record describing the outcome of the read and the events themselves, or null * if no events exist in this repository. */ default EventReadResult<T> readAll(final int version) { return readAll(version, Integer.MAX_VALUE); }
/** * Reads from the stream of all events kept in the event repository. * * @return A result record describing the outcome of the read and the events themselves, or null * if no events exist in this repository. */ default EventReadResult<T> readAll() { return readAll(0); }
/** * Reads from the stream of all events kept in the event repository. * * @return A result record describing the outcome of the read and the events themselves, or null * if no events exist in this repository. */ default EventReadResult<T> readAll() { return readAll(0); }