CanSetReadahead (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs, interface: CanSetReadahead

Package org.apache.hadoop.fs

# Interface CanSetReadahead

All Known Implementing Classes:
  `CryptoFSDataInputStream`, `CryptoInputStream`, `FSDataInputStream`

@Public @Evolving public interface CanSetReadahead

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setReadahead(Long readahead)`
  Set the readahead on this stream.

- ## Method Details

  - ### setReadahead

    void setReadahead(Long readahead) throws IOException, UnsupportedOperationException
    Set the readahead on this stream.
    Parameters:
      `readahead` - The readahead to use. null means to use the default.
    Throws:
      `IOException` - If there was an error changing the dropBehind setting. UnsupportedOperationException If this stream doesn't support setting readahead.
      `UnsupportedOperationException`