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

fr.ght1pc9kc.testy.beat.messaging.AmqpMessage Maven / Gradle / Ivy

The newest version!
package fr.ght1pc9kc.testy.beat.messaging;

import lombok.Builder;
import lombok.Singular;

import java.util.Map;

/**
 * Class wrapping the body and the headers of an AMQP message.
 */
@Builder
public final class AmqpMessage {

    public final byte[] body;

    @Singular
    public final Map headers;

    /**
     * Create a simple response
     *
     * @param body Body of the response.
     * @return {@link AmqpMessage}.
     */
    public static AmqpMessage of(byte[] body) {
        return new AmqpMessage(body, Map.of());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy