1package dev.advo.fs.dispatch;
4import java.util.ArrayList;
6import java.util.concurrent.ExecutorService;
7import java.util.concurrent.Executors;
9import dev.advo.fs.fs.IndexedFileSystem;
31 private final List<OnDemandRequestWorker>
workers =
new ArrayList<OnDemandRequestWorker>();
38 service = Executors.newFixedThreadPool(totalThreads);
45 public void start() throws Exception {
46 File base =
new File(
"./data/cache/");
A worker which services 'on-demand' requests.
void start()
Starts the threads in the pool.
RequestWorkerPool()
The request worker pool.
final ExecutorService service
The executor service.
final List< OnDemandRequestWorker > workers
A list of request workers.
static final int THREADS_PER_REQUEST_TYPE
The number of threads per request type.
A file system based on top of the operating system's file system.