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

com.aliyun.openservices.loghub.client.interfaces.ILogHubProcessor Maven / Gradle / Ivy

There is a newer version: 0.6.7
Show newest version
package com.aliyun.openservices.loghub.client.interfaces;

import com.aliyun.openservices.log.common.LogGroupData;
import com.aliyun.openservices.loghub.client.ILogHubCheckPointTracker;

import java.util.List;

public interface ILogHubProcessor {

	void initialize(int shardId);

	/**
	 * Process the data, and roll back if the return value is not NULL ""
	 * 
	 * @param logGroups the loggroups to process 
	 * @param checkPointTracker the check point tracker
	 * @return the roll backed check point. if return NULL or "", the consumer
	 *         will read log data ahead, wise other, roll back the shard to the
	 *         returned check point(shard cursor will roll back)
	 */
	String process(List logGroups,
	               ILogHubCheckPointTracker checkPointTracker);

	void shutdown(ILogHubCheckPointTracker checkPointTracker);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy