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

KafkaStreams TimeWindows.of 를 최신으로 변경하는 방법 #2

Open
saechimdaeki opened this issue Mar 22, 2023 · 0 comments
Open
Labels
deprecated deprecated 된 자료를 수정 kafka

Comments

@saechimdaeki
Copy link
Owner

.windowedBy(TimeWindows.of(Duration.ofMinutes(5)).grace(Duration.ofSeconds(30))))

기존에 이런식으로 고정 창 크기가 5분이고 유예 기간이 30초인 TimeWindows 개체를 만드는 방법이 있었다.

https://kafka.apache.org/27/javadoc/org/apache/kafka/streams/kstream/TimeWindows.html

이 방법은 deprecated가 되었음을 알 수 있는데 유예기간이 있게 설정하고 싶다면 다음과 같이할 수 있다

.windowedBy(TimeWindows.ofSizeAndGrace(Duration.ofMinutes(5),Duration.ofSeconds(30)))

유예기간이 없게 설정하고 싶다면 이 또한 명확한 메소드가 제공되는데 다음과 같다

.windowedBy(TimeWindows.ofSizeWithNoGrace(Duration.ofMinutes(5)))
@saechimdaeki saechimdaeki added kafka deprecated deprecated 된 자료를 수정 labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated deprecated 된 자료를 수정 kafka
Projects
None yet
Development

No branches or pull requests

1 participant