Class ClientFactoryBuilder

java.lang.Object
com.linecorp.armeria.client.ClientFactoryBuilder
All Implemented Interfaces:
TlsSetters

public final class ClientFactoryBuilder extends Object implements TlsSetters
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();