Class SynchronousFileIOChannel

java.lang.Object
org.apache.flink.runtime.io.disk.iomanager.AbstractFileIOChannel
org.apache.flink.runtime.io.disk.iomanager.SynchronousFileIOChannel
All Implemented Interfaces:
FileIOChannel
Direct Known Subclasses:
SynchronousBufferFileReader

public abstract class SynchronousFileIOChannel extends AbstractFileIOChannel
A base class for synchronous readers and writers.
  • Constructor Details

  • Method Details

    • isClosed

      public boolean isClosed()
      Description copied from interface: FileIOChannel
      Checks whether the channel has been closed.
      Specified by:
      isClosed in interface FileIOChannel
      Specified by:
      isClosed in class AbstractFileIOChannel
      Returns:
      True if the channel has been closed, false otherwise.
    • close

      public void close() throws IOException
      Description copied from interface: FileIOChannel
      Closes the channel. For asynchronous implementations, this method waits until all pending requests are handled. Even if an exception interrupts the closing, the underlying FileChannel is closed.
      Specified by:
      close in interface FileIOChannel
      Specified by:
      close in class AbstractFileIOChannel
      Throws:
      IOException - Thrown, if an error occurred while waiting for pending requests.