
com.taobao.drc.clusterclient.PartitionManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consumer-core Show documentation
Show all versions of consumer-core Show documentation
The java consumer core component for Data Transmission Service
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