Interface DirectExchangeBuffer

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DeduplicatingDirectExchangeBuffer, StreamingDirectExchangeBuffer

public interface DirectExchangeBuffer extends Closeable
  • Method Details

    • 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

      io.airlift.slice.Slice pollPage()
    • addTask

      void addTask(TaskId taskId)
    • addPages

      void addPages(TaskId taskId, List<io.airlift.slice.Slice> pages)
    • taskFinished

      void taskFinished(TaskId taskId)
    • taskFailed

      void taskFailed(TaskId taskId, Throwable t)
    • noMoreTasks

      void noMoreTasks()
    • isFinished

      boolean isFinished()
    • isFailed

      boolean isFailed()
    • getRemainingCapacityInBytes

      long getRemainingCapacityInBytes()
    • getRetainedSizeInBytes

      long getRetainedSizeInBytes()
    • getMaxRetainedSizeInBytes

      long getMaxRetainedSizeInBytes()
    • getBufferedPageCount

      int getBufferedPageCount()
    • getSpilledBytes

      long getSpilledBytes()
    • getSpilledPageCount

      int getSpilledPageCount()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable