public class HostProxy extends Object implements RoutingObject
| Modifier and Type | Class and Description |
|---|---|
static class |
HostProxy.Factory
A factory for creating HostProxy routingObject objects.
|
static class |
HostProxy.HostProxyConfiguration
HostProxy configuration.
|
| Modifier and Type | Field and Description |
|---|---|
static Schema.FieldType |
SCHEMA |
| Constructor and Description |
|---|
HostProxy(String host,
int port,
StyxHostHttpClient client,
OriginMetrics originMetrics) |
| Modifier and Type | Method and Description |
|---|---|
Eventual<LiveHttpResponse> |
handle(LiveHttpRequest request,
HttpInterceptor.Context context) |
CompletableFuture<Void> |
stop() |
public static final Schema.FieldType SCHEMA
public HostProxy(String host, int port, StyxHostHttpClient client, OriginMetrics originMetrics)
public Eventual<LiveHttpResponse> handle(LiveHttpRequest request, HttpInterceptor.Context context)
handle in interface HttpHandlerpublic CompletableFuture<Void> stop()
stop in interface RoutingObjectCopyright © 2013–2020 Hotels.com. All rights reserved.