public final class DefaultBlockDeletionContext extends java.lang.Object implements BlockDeletionContext
BlockDeletionContext.BlockDeletionListener| Constructor and Description |
|---|
DefaultBlockDeletionContext(BlockDeletionContext.BlockDeletionListener... listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
registerBlockForDeletion(long blockId) |
void |
registerBlocksForDeletion(java.util.Collection<java.lang.Long> blockIds) |
public DefaultBlockDeletionContext(BlockDeletionContext.BlockDeletionListener... listeners)
listeners - listeners to call for each deleted block when the context is closedpublic void registerBlocksForDeletion(java.util.Collection<java.lang.Long> blockIds)
registerBlocksForDeletion in interface BlockDeletionContextblockIds - the blocks to be deleted when the context closespublic void registerBlockForDeletion(long blockId)
registerBlockForDeletion in interface BlockDeletionContextblockId - the block to be deleted when the context closespublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2020. All Rights Reserved.