@ThreadSafe public class AsyncBlockRemover extends Object
Constructor and Description |
---|
AsyncBlockRemover(BlockWorker worker)
Constructor of AsyncBlockRemover.
|
AsyncBlockRemover(BlockWorker worker,
int threads,
BlockingQueue<Long> blocksToRemove,
Set<Long> removingBlocks)
Constructor of AsyncBlockRemover.
|
Modifier and Type | Method and Description |
---|---|
void |
addBlocksToDelete(List<Long> blocks)
Put blocks into async block remover.
|
void |
shutDown()
Shutdown async block remover.
|
public AsyncBlockRemover(BlockWorker worker)
worker
- block workerpublic AsyncBlockRemover(BlockWorker worker, int threads, BlockingQueue<Long> blocksToRemove, Set<Long> removingBlocks)
worker
- block workerthreads
- number of threadsblocksToRemove
- blocks to removeremovingBlocks
- blocks being removedCopyright © 2023. All Rights Reserved.