001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.broker;
011
012import ca.cdr.api.annotations.CdrPublicAPI;
013
014import java.util.Map;
015
016@CdrPublicAPI
017public interface IPublicBrokerSender {
018
019        /**
020         * Allows sending a plain string payload with headers to the configured broker.
021         *
022         * @param theTopic the Topic
023         * @param thePayload message payload
024         * @param theHeaders the message headers
025         */
026        void send(String theTopic, String thePayload, Map<String, Object> theHeaders) throws Exception;
027}