| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.client.endpoint |
Endpoint groups and their registry. |
| com.linecorp.armeria.client.endpoint.dns |
DNS-based
EndpointGroup implementation. |
| com.linecorp.armeria.client.endpoint.healthcheck |
Filters out unhealthy
Endpoints from an existing
EndpointGroup by sending health check requests. |
| com.linecorp.armeria.common |
Common types.
|
| Modifier and Type | Field and Description |
|---|---|
static ClientOption<Function<? super Endpoint,? extends EndpointGroup>> |
ClientOption.ENDPOINT_REMAPPER
|
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
DefaultClientRequestContext.endpoint() |
Endpoint |
ClientRequestContextWrapper.endpoint() |
Endpoint |
ClientRequestContext.endpoint()
|
static Endpoint |
Endpoint.of(String host)
Creates a new host
Endpoint with unspecified port number. |
static Endpoint |
Endpoint.of(String host,
int port)
Creates a new host
Endpoint. |
static Endpoint |
Endpoint.of(String host,
int port,
int weight)
Deprecated.
Use
of(String, int) and withWeight(int),
e.g. Endpoint.of("foo.com", 80).withWeight(500). |
static Endpoint |
Endpoint.parse(String authority)
Parse the authority part of a URI.
|
Endpoint |
Endpoint.select(ClientRequestContext ctx) |
Endpoint |
Endpoint.withDefaultPort(int defaultPort)
Returns a new host endpoint with the specified default port number.
|
Endpoint |
Endpoint.withIpAddr(String ipAddr)
Returns a new host endpoint with the specified IP address.
|
Endpoint |
Endpoint.withoutDefaultPort(int defaultPort)
Returns a new host endpoint with the default port number removed.
|
Endpoint |
Endpoint.withoutPort()
Returns a new host endpoint with its port number unspecified.
|
Endpoint |
Endpoint.withPort(int port)
Returns a new host endpoint with the specified port number.
|
Endpoint |
Endpoint.withWeight(int weight)
Returns a new host endpoint with the specified weight.
|
| Modifier and Type | Method and Description |
|---|---|
Function<? super Endpoint,? extends EndpointGroup> |
ClientOptions.endpointRemapper()
|
List<Endpoint> |
Endpoint.endpoints() |
CompletableFuture<List<Endpoint>> |
Endpoint.whenReady() |
| Modifier and Type | Method and Description |
|---|---|
ReleasableHolder<io.netty.channel.EventLoop> |
EventLoopScheduler.acquire(Endpoint endpoint,
SessionProtocol sessionProtocol)
Acquires an
EventLoop that is expected to handle a connection to the specified Endpoint. |
ReleasableHolder<io.netty.channel.EventLoop> |
DecoratingClientFactory.acquireEventLoop(Endpoint endpoint,
SessionProtocol sessionProtocol) |
ReleasableHolder<io.netty.channel.EventLoop> |
ClientFactory.acquireEventLoop(Endpoint endpoint,
SessionProtocol sessionProtocol)
Acquires an
EventLoop that is expected to handle a connection to the specified Endpoint. |
int |
Endpoint.compareTo(Endpoint that) |
ClientRequestContextBuilder |
ClientRequestContextBuilder.endpoint(Endpoint endpoint)
Sets the
Endpoint of the request. |
static boolean |
SessionProtocolNegotiationCache.isUnsupported(Endpoint endpointWithPort,
SessionProtocol protocol)
Returns
true if the specified Endpoint is known to have no support for
the specified SessionProtocol. |
ClientRequestContext |
DefaultClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContextWrapper.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint) |
ClientRequestContext |
ClientRequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq,
Endpoint endpoint)
Creates a new
ClientRequestContext whose properties and Attributes are copied from this
ClientRequestContext, except having different Request, Endpoint and its own
RequestLog. |
| Modifier and Type | Method and Description |
|---|---|
WebClientBuilder |
WebClientBuilder.endpointRemapper(Function<? super Endpoint,? extends EndpointGroup> endpointRemapper) |
ClientOptionsBuilder |
ClientOptionsBuilder.endpointRemapper(Function<? super Endpoint,? extends EndpointGroup> endpointRemapper) |
ClientBuilder |
ClientBuilder.endpointRemapper(Function<? super Endpoint,? extends EndpointGroup> endpointRemapper) |
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. |
| Constructor and Description |
|---|
ClientBuilder(Scheme scheme,
Endpoint endpoint)
Deprecated.
|
ClientBuilder(SessionProtocol protocol,
Endpoint endpoint)
Deprecated.
|
ClientBuilder(String scheme,
Endpoint endpoint)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
EndpointSelector.select(ClientRequestContext ctx)
|
Endpoint |
EndpointGroup.select(ClientRequestContext ctx)
Selects an
Endpoint from this EndpointGroup. |
Endpoint |
DynamicEndpointGroup.select(ClientRequestContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
default List<Endpoint> |
EndpointGroup.awaitInitialEndpoints()
Deprecated.
|
default List<Endpoint> |
EndpointGroup.awaitInitialEndpoints(long timeout,
TimeUnit unit)
Deprecated.
|
List<Endpoint> |
EndpointGroup.endpoints()
Returns the endpoints held by this
EndpointGroup. |
List<Endpoint> |
DynamicEndpointGroup.endpoints() |
default CompletableFuture<List<Endpoint>> |
EndpointGroup.initialEndpointsFuture()
Deprecated.
|
CompletableFuture<List<Endpoint>> |
EndpointGroup.whenReady()
Returns a
CompletableFuture which is completed when the initial Endpoints are ready. |
CompletableFuture<List<Endpoint>> |
DynamicEndpointGroup.whenReady()
Returns the
CompletableFuture which is completed when the initial Endpoints are ready. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DynamicEndpointGroup.addEndpoint(Endpoint e)
|
protected void |
DynamicEndpointGroup.removeEndpoint(Endpoint e)
|
| Modifier and Type | Method and Description |
|---|---|
default void |
EndpointGroup.addListener(Consumer<? super List<Endpoint>> listener) |
protected void |
DynamicEndpointGroup.setEndpoints(Iterable<Endpoint> endpoints)
|
| Modifier and Type | Method and Description |
|---|---|
static DnsTextEndpointGroupBuilder |
DnsTextEndpointGroup.builder(String hostname,
Function<byte[],Endpoint> mapping)
Returns a new
DnsTextEndpointGroupBuilder with
the specified hostname and Function mapping. |
static DnsTextEndpointGroup |
DnsTextEndpointGroup.of(String hostname,
Function<byte[],Endpoint> mapping)
Creates a
DnsTextEndpointGroup that schedules queries on a random EventLoop from
CommonPools.workerGroup(). |
| Constructor and Description |
|---|
DnsTextEndpointGroupBuilder(String hostname,
Function<byte[],Endpoint> mapping)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
HealthCheckerContext.endpoint()
Returns the
Endpoint to send health check requests to. |
| Modifier and Type | Method and Description |
|---|---|
default RequestHeadersBuilder |
RequestHeadersBuilder.authority(Endpoint endpoint)
Sets the
":authority" header from the specified Endpoint. |
Copyright © 2020 LeanCloud. All rights reserved.