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

io.quarkiverse.reactive.messaging.nats.jetstream.client.api.StreamSetupConfiguration Maven / Gradle / Ivy

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

import java.util.List;

import io.quarkiverse.reactive.messaging.nats.jetstream.JetStreamBuildConfiguration;
import io.quarkiverse.reactive.messaging.nats.jetstream.client.configuration.StreamConfiguration;
import lombok.Builder;

@Builder
public record StreamSetupConfiguration(StreamConfiguration configuration, boolean overwrite) {

    public static List of(JetStreamBuildConfiguration configuration) {
        return configuration.streams()
                .stream().map(c -> StreamSetupConfiguration.builder()
                        .configuration(StreamConfiguration.of(c))
                        .overwrite(c.overwrite())
                        .build())
                .toList();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy