Class ClientBuilderFactory


  • @Singleton
    public class ClientBuilderFactory
    extends java.lang.Object
    A convenience factory that sets up a ClientBuilder 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)
    • Method Detail

      • create

        public com.linecorp.armeria.client.ClientBuilder create​(java.lang.String name,
                                                                java.lang.String url)