Class ClientFactoryBuilder

java.lang.Object
com.linecorp.armeria.client.ClientFactoryBuilder

public final class ClientFactoryBuilder
extends Object
Builds a new ClientFactory.

Example


 final ClientFactory factory =
         ClientFactory.builder()
                      // Set the connection timeout to 5 seconds.
                      .connectTimeoutMillis(5000)
                      // Set the socket send buffer to 1 MiB.
                      .socketOption(ChannelOption.SO_SNDBUF, 1048576)
                      // Disable certificate verification; never do this in production!
                      .tlsNoVerify()
                      .build();