mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 02:19:56 +08:00
20 lines
385 B
Java
20 lines
385 B
Java
/**
|
||
* 抖音关注:程序员三丙
|
||
* 知识星球:https://t.zsxq.com/j9b21
|
||
*/
|
||
package sanbing.jcpp.infrastructure.queue;
|
||
|
||
|
||
import sanbing.jcpp.infrastructure.queue.common.TopicPartitionInfo;
|
||
|
||
public interface QueueProducer<T extends QueueMsg> {
|
||
|
||
void init();
|
||
|
||
String getTopic();
|
||
|
||
void send(TopicPartitionInfo tpi, T msg, QueueCallback callback);
|
||
|
||
void stop();
|
||
}
|