
org.frameworkset.plugin.kafka.BaseStoreService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-plugin-kafka1x Show documentation
Show all versions of bboss-plugin-kafka1x Show documentation
hibernate plugin,word/pdf plugin
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