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