public final class NoopBlockDeletionContext extends 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, wait
registerBlocksForDeletion
public static final NoopBlockDeletionContext INSTANCE
public void registerBlockForDeletion(long blockId)
registerBlockForDeletion
in interface BlockDeletionContext
blockId
- the block to be deleted when the context closespublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.