io.quarkiverse.reactive.messaging.nats.jetstream.client.configuration.ConnectionConfiguration Maven / Gradle / Ivy
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