Package com.linecorp.armeria.client
@NonNullByDefault
package com.linecorp.armeria.client
Client core.
Starting points
-
ClassDescriptionA skeletal builder implementation for
ClientOptions.A skeletal builder implementation for DNS resolvers.A skeletal builder implementation forRetryRule,RetryRuleWithContent,CircuitBreakerRuleandCircuitBreakerRuleWithContent.AbstractRuleWithContentBuilder<T extends Response>A skeletal builder implementation forRetryRuleWithContentandCircuitBreakerRuleWithContent.A skeletal builder implementation forWebClient.A blocking web client that waits for anHttpResponseto be fully aggregated.Prepares and executes a newHttpRequestforBlockingWebClient.Creates a new client that connects to the specifiedURIusing the builder pattern.Provides the construction parameters of a client.Creates a newClientDecorationusing the builder pattern.Creates and manages clients.Builds a newClientFactory.AClientFactoryoption.A set ofClientFactoryOptions and their respective values.A value of aClientFactoryOption.Creates a newClientFactorydynamically via Java SPI (Service Provider Interface).ClientOption<T>A client option.A set ofClientOptions and their respective values.Creates a newClientOptionsusing the builder pattern.A value of aClientOption.Builds a newClientRequestContext.Captures theClientRequestContexts created by the current thread.Wraps an existingClientRequestContext.Creates a new client that connects to a specifiedURI.Listens to the client connection pool events.A skeletalConnectionPoolListenerimplementation in order for a user to implement only the methods what he or she really needs.AConnectionPoolListenerthat wraps an existingConnectionPoolListener.Decorates aClient.A functional interface that enables building aSimpleDecoratingHttpClientwithClientBuilder.decorator(DecoratingHttpClientFunction).A functional interface that enables building aSimpleDecoratingRpcClientwithClientBuilder.rpcDecorator(DecoratingRpcClientFunction).A cache for DNS responses.A builder forDnsCache.Listens to theDnsCacheevents.Builds anAddressResolverGroupwhich buildsAddressResolvers that update DNS caches automatically.ATimeoutExceptionraised when a response has not been received from a DNS server within timeout.A remote endpoint that refers to a single host.Asynchronously transforms anHttpResponseinto aTtype object.Prepares and executes a newHttpRequestforWebClient, and asynchronously transforms anHttpResponseinto aTtype object.ARuntimeExceptionraised when a server sent an HTTP/2 GOAWAY frame with thelastStreamIdless then the stream ID of the request.Sends anHttpRequestto a remoteEndpoint.AnInvalidResponseExceptionraised when a client received an invalidHttpResponse.ARuntimeExceptionraised when a client received an invalid response.AnInvalidResponseExceptionraised when a client received a response with invalid headers.AnSSLExceptionraised before starting a TLS handshake.ARuntimeExceptionraised when a server set HTTP/2MAX_CONCURRENT_STREAMSto 0, which means a client can't send anything.ARequestOptionsfor anHttpRequest.A builder for creating a newRequestOptions.Provides the setters for buildingRequestOptions.Provides the setters for building anHttpRequestandRequestOptions.ResponseAs<T,R> Transforms a response into another.ACancellationExceptionraised when a response is cancelled by the user.ATimeoutExceptionraised when a response has not been received from a server within timeout.A client designed for calling RESTful APIs conveniently.Prepares and executes a newHttpRequestforRestClient.Sends anRpcRequestto a remoteEndpoint.Keeps the recentSessionProtocolnegotiation failures.An exception triggered when failed to negotiate the desiredSessionProtocolwith a server.Decorates aClient.Decorates anHttpClient.Decorates anRpcClient.Prepares and executes a newHttpRequestfor aWebClientorBlockingWebClient, and transforms anHttpResponseinto theTtype object.ARuntimeExceptionraised when it is certain that a request has not been handled by a server and thus can be retried safely.A base class for implementing a user's entry point for sending aRequest.An asynchronous web client.Creates a new web client that connects to the specifiedURIusing the builder pattern.Prepares and executes a newHttpRequestforWebClient.ATimeoutExceptionraised when a client failed to send a request to the wire within timeout.