Package io.trino.operator
Class HttpPageBufferClient
- java.lang.Object
-
- io.trino.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 interfaceHttpPageBufferClient.ClientCallbackFor each request, the addPage method will be called zero or more times, followed by either requestComplete or clientFinished (if buffer complete).static classHttpPageBufferClient.PageResponseHandlerstatic classHttpPageBufferClient.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, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, 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, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, Executor pageBufferClientCallbackExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanequals(Object o)TaskIdgetRemoteTaskId()PageBufferClientStatusgetStatus()inthashCode()booleanisRunning()voidscheduleRequest()StringtoString()
-
-
-
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, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, 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, TaskId remoteTaskId, URI location, HttpPageBufferClient.ClientCallback clientCallback, ScheduledExecutorService scheduledExecutor, com.google.common.base.Ticker ticker, Executor pageBufferClientCallbackExecutor)
-
-
Method Detail
-
getStatus
public PageBufferClientStatus getStatus()
-
getRemoteTaskId
public TaskId getRemoteTaskId()
-
isRunning
public boolean isRunning()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
scheduleRequest
public void scheduleRequest()
-
-