Package io.trino.operator
Interface ExchangeClientBuffer
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
DeduplicationExchangeClientBuffer,StreamingExchangeClientBuffer
public interface ExchangeClientBuffer extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPages(TaskId taskId, List<SerializedPage> pages)voidaddTask(TaskId taskId)voidclose()intgetBufferedPageCount()longgetMaxRetainedSizeInBytes()longgetRemainingCapacityInBytes()longgetRetainedSizeInBytes()com.google.common.util.concurrent.ListenableFuture<Void>isBlocked()This method may be called by multiple independent client concurrently.booleanisFinished()voidnoMoreTasks()SerializedPagepollPage()voidtaskFailed(TaskId taskId, Throwable t)voidtaskFinished(TaskId taskId)
-
-
-
Method Detail
-
isBlocked
com.google.common.util.concurrent.ListenableFuture<Void> isBlocked()
This method may be called by multiple independent client concurrently. Implementations must ensure the cancellation of a future by one of the clients doesn't cancel futures obtained by other clients.
-
pollPage
SerializedPage pollPage()
-
addTask
void addTask(TaskId taskId)
-
addPages
void addPages(TaskId taskId, List<SerializedPage> pages)
-
taskFinished
void taskFinished(TaskId taskId)
-
noMoreTasks
void noMoreTasks()
-
isFinished
boolean isFinished()
-
getRemainingCapacityInBytes
long getRemainingCapacityInBytes()
-
getRetainedSizeInBytes
long getRetainedSizeInBytes()
-
getMaxRetainedSizeInBytes
long getMaxRetainedSizeInBytes()
-
getBufferedPageCount
int getBufferedPageCount()
-
close
void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-