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

org.frameworkset.plugin.kafka.BaseStoreService Maven / Gradle / Ivy

The newest version!
package org.frameworkset.plugin.kafka;

import java.util.ArrayList;
import java.util.List;

import kafka.message.MessageAndMetadata;

public abstract class BaseStoreService implements StoreService{
	/**
	 * 批处理接口
	 */
	public void store(List> message)  throws Exception {
		
	}
	/**
	 * 实时处理接口
	 */
	public void store(MessageAndMetadata message)  throws Exception {
		List> msgs= new ArrayList>();
		msgs.add(message);
		store(msgs) ;
	}
	public abstract void closeService();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy