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

io.quarkiverse.reactive.messaging.nats.jetstream.mapper.HeaderMapper Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkiverse.reactive.messaging.nats.jetstream.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import io.nats.client.impl.Headers;

public class HeaderMapper {

    public static Map> toMessageHeaders(Headers headers) {
        final var result = new HashMap>();
        if (headers != null) {
            headers.entrySet().forEach(entry -> result.put(entry.getKey(), entry.getValue()));
        }
        return result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy