@ThreadSafe public class AsyncCacheRequestManager extends Object
Constructor and Description |
---|
AsyncCacheRequestManager(ExecutorService service,
BlockWorker blockWorker,
FileSystemContext fsContext) |
Modifier and Type | Method and Description |
---|---|
void |
submitRequest(AsyncCacheRequest request)
Handles a request to cache a block asynchronously.
|
public AsyncCacheRequestManager(ExecutorService service, BlockWorker blockWorker, FileSystemContext fsContext)
service
- thread pool to run the background caching workblockWorker
- handler to the block workerfsContext
- context used to instantiate RemoteBlockReader
public void submitRequest(AsyncCacheRequest request)
request
- the async cache request fields will be availableCopyright © 2023. All Rights Reserved.