Interface WritableFrameChannel

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
ComposingWritableFrameChannel, WritableFrameFileChannel

public interface WritableFrameChannel extends Closeable
Interface for writing a sequence of frames. Supports nonblocking writes through the writabilityFuture() method. May be implemented using an in-memory queue, disk file, stream, etc. Channels implementing this interface are used by a single writer; they do not support concurrent writes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Finish writing to this channel.
    void
    fail(Throwable cause)
    Called prior to close() if the writer has failed.
    boolean
    Whether close() has been called on this channel.
    com.google.common.util.concurrent.ListenableFuture<?>
    Returns a future that resolves when write(org.apache.druid.frame.channel.FrameWithPartition) is able to receive a new frame without blocking or throwing an exception.
    void
    write(FrameWithPartition frameWithPartition)
    Writes a frame with an attached partition number.
    default void
    write(Frame frame)
    Writes a frame without an attached partition number.