public final class NoopBlockDeletionContext extends java.lang.Object implements BlockDeletionContext
DefaultBlockDeletionContext which does nothing.BlockDeletionContext.BlockDeletionListener| Modifier and Type | Field and Description |
|---|---|
static NoopBlockDeletionContext |
INSTANCE |
| Constructor and Description |
|---|
NoopBlockDeletionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
registerBlockForDeletion(long blockId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterBlocksForDeletionpublic static final NoopBlockDeletionContext INSTANCE
public void registerBlockForDeletion(long blockId)
registerBlockForDeletion in interface BlockDeletionContextblockId - the block to be deleted when the context closespublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2020. All Rights Reserved.