Class ClientBuilderFactory
- java.lang.Object
-
- org.curioswitch.common.server.framework.armeria.ClientBuilderFactory
-
@Singleton public class ClientBuilderFactory extends java.lang.Object
A convenience factory that sets up aClientBuilder
with appropriate default parameters. Currently only sets up the client's SSL context but in the future will set up monitoring, etc.
-
-
Constructor Summary
Constructors Constructor Description ClientBuilderFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry, brave.Tracing tracing, java.util.function.Function<com.linecorp.armeria.client.Client<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>,com.linecorp.armeria.client.logging.LoggingClient<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>> loggingClient, java.util.Optional<io.netty.handler.ssl.util.SelfSignedCertificate> selfSignedCertificate, java.util.Optional<javax.net.ssl.TrustManagerFactory> caTrustManager, dagger.Lazy<org.curioswitch.curiostack.gcloud.core.auth.GoogleCredentialsDecoratingClient.Factory> googleCredentialsDecoratingClient, ServerConfig serverConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.linecorp.armeria.client.ClientBuilder
create(java.lang.String name, java.lang.String url)
-
-
-
Constructor Detail
-
ClientBuilderFactory
@Inject public ClientBuilderFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry, brave.Tracing tracing, java.util.function.Function<com.linecorp.armeria.client.Client<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>,com.linecorp.armeria.client.logging.LoggingClient<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>> loggingClient, java.util.Optional<io.netty.handler.ssl.util.SelfSignedCertificate> selfSignedCertificate, java.util.Optional<javax.net.ssl.TrustManagerFactory> caTrustManager, dagger.Lazy<org.curioswitch.curiostack.gcloud.core.auth.GoogleCredentialsDecoratingClient.Factory> googleCredentialsDecoratingClient, ServerConfig serverConfig)
-
-