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

io.quarkiverse.reactive.messaging.nats.jetstream.client.configuration.ConnectionConfiguration Maven / Gradle / Ivy

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

import java.time.Duration;
import java.util.Optional;

import io.nats.client.ErrorListener;
import io.quarkiverse.reactive.messaging.nats.NatsConfiguration;

public interface ConnectionConfiguration {

    String servers();

    Optional password();

    Optional username();

    Optional token();

    boolean sslEnabled();

    Optional bufferSize();

    Optional errorListener();

    Optional connectionTimeout();

    Optional credentialPath();

    Optional keystorePath();

    Optional keystorePassword();

    Optional truststorePath();

    Optional truststorePassword();

    Optional tlsAlgorithm();

    Optional connectionBackoff();

    Optional connectionAttempts();

    static ConnectionConfiguration of(NatsConfiguration configuration) {
        return new DefaultConnectionConfiguration(configuration);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy