Package alluxio.worker.block
Class BlockLock
- java.lang.Object
-
- alluxio.resource.CloseableResource<java.lang.Long>
-
- alluxio.worker.block.BlockLock
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class BlockLock extends CloseableResource<java.lang.Long>
A resource lock for block.
-
-
Constructor Summary
Constructors Constructor Description BlockLock(long lockId, java.util.function.Consumer<java.lang.Long> unlock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeResource()
Performs any cleanup operations necessary when the resource is no longer in use.-
Methods inherited from class alluxio.resource.CloseableResource
close, get
-
-
-
-
Method Detail
-
closeResource
public void closeResource()
Description copied from class:CloseableResource
Performs any cleanup operations necessary when the resource is no longer in use.- Specified by:
closeResource
in classCloseableResource<java.lang.Long>
-
-