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

com.taosdata.jdbc.tmq.TConsumer Maven / Gradle / Ivy

package com.taosdata.jdbc.tmq;

import java.sql.SQLException;
import java.time.Duration;
import java.util.Collection;
import java.util.Set;

public interface TConsumer extends AutoCloseable {

    void subscribe(Collection topics) throws SQLException;

    void unsubscribe() throws SQLException;

    Set subscription() throws SQLException;

    ConsumerRecords poll(Duration timeout) throws SQLException;

    void commitAsync();

    void commitAsync(OffsetCommitCallback callback);

    void commitSync() throws SQLException;

    @Override
    void close() throws SQLException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy