| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| Modifier and Type | Method and Description |
|---|---|
ClientFactoryBuilder |
ClientFactoryBuilder.addressResolverGroupFactory(Function<? super io.netty.channel.EventLoopGroup,? extends io.netty.resolver.AddressResolverGroup<? extends InetSocketAddress>> addressResolverGroupFactory)
Sets the factory that creates a
AddressResolverGroup which resolves remote addresses into
InetSocketAddresses. |
static ClientFactoryBuilder |
ClientFactory.builder()
Returns a newly created
ClientFactoryBuilder. |
<T> ClientFactoryBuilder |
ClientFactoryBuilder.channelOption(io.netty.channel.ChannelOption<T> option,
T value)
Sets the options of sockets created by the
ClientFactory. |
ClientFactoryBuilder |
ClientFactoryBuilder.connectionPoolListener(ConnectionPoolListener connectionPoolListener)
Sets the listener which is notified on a connection pool event.
|
ClientFactoryBuilder |
ClientFactoryBuilder.connectTimeout(Duration connectTimeout)
Sets the timeout of a socket connection attempt.
|
ClientFactoryBuilder |
ClientFactoryBuilder.connectTimeoutMillis(long connectTimeoutMillis)
Sets the timeout of a socket connection attempt in milliseconds.
|
ClientFactoryBuilder |
ClientFactoryBuilder.domainNameResolverCustomizer(Consumer<? super DnsResolverGroupBuilder> dnsResolverGroupCustomizer)
Adds the specified
Consumer which customizes the given DnsNameResolverBuilder. |
ClientFactoryBuilder |
ClientFactoryBuilder.eventLoopSchedulerFactory(Function<? super io.netty.channel.EventLoopGroup,? extends EventLoopScheduler> eventLoopSchedulerFactory)
Sets the factory that creates an
EventLoopScheduler which is responsible for assigning an
EventLoop to handle a connection to the specified Endpoint. |
ClientFactoryBuilder |
ClientFactoryBuilder.http1MaxChunkSize(int http1MaxChunkSize)
Sets the maximum length of each chunk in an HTTP/1 response content.
|
ClientFactoryBuilder |
ClientFactoryBuilder.http1MaxHeaderSize(int http1MaxHeaderSize)
Sets the maximum length of all headers in an HTTP/1 response.
|
ClientFactoryBuilder |
ClientFactoryBuilder.http1MaxInitialLineLength(int http1MaxInitialLineLength)
Sets the maximum length of an HTTP/1 response initial line.
|
ClientFactoryBuilder |
ClientFactoryBuilder.http2InitialConnectionWindowSize(int http2InitialConnectionWindowSize)
|
ClientFactoryBuilder |
ClientFactoryBuilder.http2InitialStreamWindowSize(int http2InitialStreamWindowSize)
Sets the SETTINGS_INITIAL_WINDOW_SIZE
for HTTP/2 stream-level flow control.
|
ClientFactoryBuilder |
ClientFactoryBuilder.http2MaxFrameSize(int http2MaxFrameSize)
Sets the SETTINGS_MAX_FRAME_SIZE
that indicates the size of the largest frame payload that this client is willing to receive.
|
ClientFactoryBuilder |
ClientFactoryBuilder.http2MaxHeaderListSize(long http2MaxHeaderListSize)
Sets the SETTINGS_MAX_HEADER_LIST_SIZE
that indicates the maximum size of header list that the client is prepared to accept, in octets.
|
ClientFactoryBuilder |
ClientFactoryBuilder.idleTimeout(Duration idleTimeout)
Sets the idle timeout of a socket connection.
|
ClientFactoryBuilder |
ClientFactoryBuilder.idleTimeoutMillis(long idleTimeoutMillis)
Sets the idle timeout of a socket connection in milliseconds.
|
ClientFactoryBuilder |
ClientFactoryBuilder.maxNumEventLoopsFunction(ToIntFunction<Endpoint> maxNumEventLoopsFunction)
Sets the
ToIntFunction which takes an Endpoint and produces the maximum number of
EventLoops which will be used to handle connections to the specified Endpoint. |
ClientFactoryBuilder |
ClientFactoryBuilder.maxNumEventLoopsPerEndpoint(int maxNumEventLoopsPerEndpoint)
Sets the maximum number of
EventLoops which will be used to handle HTTP/2 connections
except the ones specified by maxNumEventLoopsFunction(ToIntFunction). |
ClientFactoryBuilder |
ClientFactoryBuilder.maxNumEventLoopsPerHttp1Endpoint(int maxNumEventLoopsPerEndpoint)
Sets the maximum number of
EventLoops which will be used to handle HTTP/1.1 connections
except the ones specified by maxNumEventLoopsFunction(ToIntFunction). |
ClientFactoryBuilder |
ClientFactoryBuilder.meterRegistry(MeterRegistry meterRegistry)
Sets the
MeterRegistry which collects various stats. |
<T> ClientFactoryBuilder |
ClientFactoryBuilder.option(ClientFactoryOption<T> option,
T value)
Adds the specified
ClientFactoryOption and its value. |
<T> ClientFactoryBuilder |
ClientFactoryBuilder.option(ClientFactoryOptionValue<T> optionValue)
Adds the specified
ClientFactoryOptionValue. |
ClientFactoryBuilder |
ClientFactoryBuilder.options(ClientFactoryOptions options)
Adds the specified
ClientFactoryOptions. |
<T> ClientFactoryBuilder |
ClientFactoryBuilder.socketOption(io.netty.channel.ChannelOption<T> option,
T value)
Deprecated.
|
ClientFactoryBuilder |
ClientFactoryBuilder.sslContextCustomizer(Consumer<? super io.netty.handler.ssl.SslContextBuilder> sslContextCustomizer)
Deprecated.
|
ClientFactoryBuilder |
ClientFactoryBuilder.tlsCustomizer(Consumer<? super io.netty.handler.ssl.SslContextBuilder> tlsCustomizer)
Adds the
Consumer which can arbitrarily configure the SslContextBuilder that will be
applied to the SSL session. |
ClientFactoryBuilder |
ClientFactoryBuilder.tlsNoVerify()
Disables the verification of server's key certificate chain.
|
ClientFactoryBuilder |
ClientFactoryBuilder.useHttp1Pipelining(boolean useHttp1Pipelining)
Sets whether to use HTTP pipelining for
HTTP/1 connections.
|
ClientFactoryBuilder |
ClientFactoryBuilder.useHttp2Preface(boolean useHttp2Preface)
Sets whether to send an HTTP/2 preface string instead of an HTTP/1 upgrade request to negotiate
the protocol version of a cleartext HTTP connection.
|
ClientFactoryBuilder |
ClientFactoryBuilder.workerGroup(io.netty.channel.EventLoopGroup workerGroup,
boolean shutdownOnClose)
Sets the worker
EventLoopGroup which is responsible for performing socket I/O and running
Client.execute(ClientRequestContext, Request). |
Copyright © 2020 LeanCloud. All rights reserved.