Package io.prestosql.operator
Class HttpPageBufferClient
- java.lang.Object
-
- io.prestosql.operator.HttpPageBufferClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
@ThreadSafe public final class HttpPageBufferClient extends Object implements Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, 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)
HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduler, Executor pageBufferClientCallbackExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
PageBufferClientStatus
getStatus()
int
hashCode()
boolean
isRunning()
void
scheduleRequest()
String
toString()
-
-
-
Constructor Detail
-
HttpPageBufferClient
public HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, io.airlift.units.DataSize maxResponseSize, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduler, Executor pageBufferClientCallbackExecutor)
-
HttpPageBufferClient
public HttpPageBufferClient(String selfAddress, io.airlift.http.client.HttpClient httpClient, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, 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)
-
-
Method Detail
-
getStatus
public PageBufferClientStatus getStatus()
-
isRunning
public boolean isRunning()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
scheduleRequest
public void scheduleRequest()
-
-