@ThreadSafe public final class HttpPageBufferClient extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpPageBufferClient.ClientCallback
For each request, the addPage method will be called zero or more times,
followed by either requestComplete or clientFinished (if buffer complete).
|
static class |
HttpPageBufferClient.PageResponseHandler |
static class |
HttpPageBufferClient.PagesResponse |
| Constructor and Description |
|---|
HttpPageBufferClient(io.airlift.http.client.HttpClient httpClient,
io.airlift.units.DataSize maxResponseSize,
io.airlift.units.Duration maxErrorDuration,
boolean acknowledgePages,
URI location,
HttpPageBufferClient.ClientCallback clientCallback,
ScheduledExecutorService scheduler,
Executor pageBufferClientCallbackExecutor) |
HttpPageBufferClient(io.airlift.http.client.HttpClient httpClient,
io.airlift.units.DataSize maxResponseSize,
io.airlift.units.Duration maxErrorDuration,
boolean acknowledgePages,
URI location,
HttpPageBufferClient.ClientCallback clientCallback,
ScheduledExecutorService scheduler,
com.google.common.base.Ticker ticker,
Executor pageBufferClientCallbackExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object o) |
PageBufferClientStatus |
getStatus() |
int |
hashCode() |
boolean |
isRunning() |
void |
scheduleRequest() |
String |
toString() |
public HttpPageBufferClient(io.airlift.http.client.HttpClient httpClient,
io.airlift.units.DataSize maxResponseSize,
io.airlift.units.Duration maxErrorDuration,
boolean acknowledgePages,
URI location,
HttpPageBufferClient.ClientCallback clientCallback,
ScheduledExecutorService scheduler,
Executor pageBufferClientCallbackExecutor)
public HttpPageBufferClient(io.airlift.http.client.HttpClient httpClient,
io.airlift.units.DataSize maxResponseSize,
io.airlift.units.Duration maxErrorDuration,
boolean acknowledgePages,
URI location,
HttpPageBufferClient.ClientCallback clientCallback,
ScheduledExecutorService scheduler,
com.google.common.base.Ticker ticker,
Executor pageBufferClientCallbackExecutor)
public PageBufferClientStatus getStatus()
public boolean isRunning()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void scheduleRequest()
Copyright © 2012–2019. All rights reserved.