public class BlockLock extends CloseableResource<Long>
Constructor and Description |
---|
BlockLock(long lockId,
java.util.function.Consumer<Long> unlock) |
Modifier and Type | Method and Description |
---|---|
void |
closeResource()
Performs any cleanup operations necessary when the resource is no longer in use.
|
close, get, isClosed
public BlockLock(long lockId, java.util.function.Consumer<Long> unlock)
lockId
- lockIdunlock
- unlock functionpublic void closeResource()
CloseableResource
closeResource
in class CloseableResource<Long>
Copyright © 2023. All Rights Reserved.