Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventReader 인터페이스에 queryEvents(Type stateType, String streamId) 기본 메서드 추가 #70

Open
gyuwon opened this issue Jan 3, 2023 · 0 comments

Comments

@gyuwon
Copy link
Member

gyuwon commented Jan 3, 2023

fromVersion 매개변수에 1을 사용한다.

default Iterable<Object> queryEvents(
    Type stateType,
    String streamId
) {
    return queryEvents(stateType, streamId, 1);
}

테스트 코드와 운영 코드가 완료되면 Rehydrator가 추가된 기본 메서드를 사용하도록 리팩터 한다.

https://github.com/loom/loom-java/blob/main/loom.eventsourcing.abstraction/src/main/java/loom/eventsourcing/Rehydrator.java#L67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant