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

com.jeesuite.kafka.producer.TopicProducer Maven / Gradle / Ivy

package com.jeesuite.kafka.producer;

import com.jeesuite.kafka.message.DefaultMessage;
import com.jeesuite.kafka.producer.handler.ProducerEventHandler;

/**
 * @description 
* @author vakin * @date 2016年6月14日 */ public interface TopicProducer { void addEventHandler(ProducerEventHandler eventHandler); /** * 发送消息(可选择发送模式) * @param topic * @param message * @param asynSend 是否异步发送 * @return */ boolean publish(final String topic, final DefaultMessage message,boolean asynSend); void close(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy