Class ReadAheadInputStream.Builder

All Implemented Interfaces:
IOSupplier<ReadAheadInputStream>
Enclosing class:
ReadAheadInputStream

Builds a new ReadAheadInputStream.

For example:


 ReadAheadInputStream s = ReadAheadInputStream.builder()
   .setPath(path)
   .setExecutorService(Executors.newSingleThreadExecutor(ReadAheadInputStream::newThread))
   .get();
 

If an ExecutorService is not set, then a single-threaded daemon executor service is used.

Since:
2.12.0
See Also: