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

com.taobao.drc.clusterclient.PartitionManager Maven / Gradle / Ivy

The newest version!
package com.taobao.drc.clusterclient;

import com.taobao.drc.clusterclient.clustermanager.ExpectedConsumerStatus;
import com.taobao.drc.clusterclient.clustermanager.LocalConsumerStatus;
import com.taobao.drc.clusterclient.clustermanager.PartitionInfo;
import com.taobao.drc.clusterclient.partition.PartitionRef;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * @author yangyang
 * @since 17/6/23
 */
public interface PartitionManager {
    void start() throws ExecutionException, InterruptedException;

    void stop();

    void waitForStop(long timeLimitInSec) throws InterruptedException;

    C getContext();

    ConsumerState getState();

    T getNextListener();

    LocalConsumerStatus getLocalConsumerStatus();

    Map onCommitComplete(ExpectedConsumerStatus expectedConsumerStatus, Throwable throwable);

    void onGetPartitionInfoComplete(Map partitionInfoMap, Map generationMap, Throwable throwable);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy