tech.ydb.topic.read.events.AbstractReadEventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-topic Show documentation
Show all versions of ydb-sdk-topic Show documentation
Topic client implementation
package tech.ydb.topic.read.events;
/**
* @author Nikolay Perfilov
*/
public abstract class AbstractReadEventHandler implements ReadEventHandler {
// onMessages(DataReceivedEvent event) method should be defined in user's implementation
@Override
public void onCommitResponse(CommitOffsetAcknowledgementEvent event) {
}
@Override
public void onStartPartitionSession(StartPartitionSessionEvent event) {
event.confirm();
}
@Override
public void onStopPartitionSession(StopPartitionSessionEvent event) {
event.confirm();
}
@Override
public void onPartitionSessionClosed(PartitionSessionClosedEvent event) {
}
@Override
public void onReaderClosed(ReaderClosedEvent event) {
}
}