All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ydb.topic.read.impl.events.CommitOffsetAcknowledgementEventImpl Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package tech.ydb.topic.read.impl.events;

import tech.ydb.topic.read.PartitionSession;
import tech.ydb.topic.read.events.CommitOffsetAcknowledgementEvent;

public class CommitOffsetAcknowledgementEventImpl implements CommitOffsetAcknowledgementEvent {
    private final PartitionSession partitionSession;
    private final long committedOffset;

    public CommitOffsetAcknowledgementEventImpl(PartitionSession partitionSession, long committedOffset) {
        this.partitionSession = partitionSession;
        this.committedOffset = committedOffset;
    }

    @Override
    public PartitionSession getPartitionSession() {
        return partitionSession;
    }

    @Override
    public long getCommittedOffset() {
        return committedOffset;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy