com.jn.agileway.dmmq.core.Producer Maven / Gradle / Ivy
package com.jn.agileway.dmmq.core;
import com.jn.langx.annotation.NonNull;
import com.jn.langx.annotation.Nullable;
public interface Producer extends TopicAllocatorAware, MessageTopicDispatcherAware {
void publish(@NonNull M message);
void publish(@Nullable String topicName, @NonNull M message);
}