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

org.reactivecommons.async.commons.communications.Message Maven / Gradle / Ivy

There is a newer version: 5.2.2
Show newest version
package org.reactivecommons.async.commons.communications;

import java.util.Map;

/**
 * Simple Internal Message representation
 *
 * @author Daniel Bustamante Ospina
 */
public interface Message {

    byte[] getBody();

    Properties getProperties();

    interface Properties {
        String getContentType();

        default String getContentEncoding() {
            return null;
        }

        long getContentLength();

        Map getHeaders();

        default String getKey() {
            return null;
        }

        default String getTopic() {
            return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy