Package io.trino.operator
Class ExchangeClient
- java.lang.Object
-
- io.trino.operator.ExchangeClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
@ThreadSafe public class ExchangeClient extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description ExchangeClient(String selfAddress, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, ExchangeClientBuffer buffer, io.airlift.units.DataSize maxResponseSize, int concurrentRequestMultiplier, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, io.airlift.http.client.HttpClient httpClient, ScheduledExecutorService scheduledExecutor, LocalMemoryContext systemMemoryContext, Executor pageBufferClientCallbackExecutor, TaskFailureListener taskFailureListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocation(TaskId taskId, URI location)voidclose()ExchangeClientStatusgetStatus()com.google.common.util.concurrent.ListenableFuture<Void>isBlocked()booleanisFinished()voidnoMoreLocations()WorkProcessor<SerializedPage>pages()SerializedPagepollPage()
-
-
-
Constructor Detail
-
ExchangeClient
public ExchangeClient(String selfAddress, FeaturesConfig.DataIntegrityVerification dataIntegrityVerification, ExchangeClientBuffer buffer, io.airlift.units.DataSize maxResponseSize, int concurrentRequestMultiplier, io.airlift.units.Duration maxErrorDuration, boolean acknowledgePages, io.airlift.http.client.HttpClient httpClient, ScheduledExecutorService scheduledExecutor, LocalMemoryContext systemMemoryContext, Executor pageBufferClientCallbackExecutor, TaskFailureListener taskFailureListener)
-
-
Method Detail
-
getStatus
public ExchangeClientStatus getStatus()
-
noMoreLocations
public void noMoreLocations()
-
pages
public WorkProcessor<SerializedPage> pages()
-
pollPage
@Nullable public SerializedPage pollPage()
-
isFinished
public boolean isFinished()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isBlocked
public com.google.common.util.concurrent.ListenableFuture<Void> isBlocked()
-
-