public class RocksSharedLockHandle extends Object implements AutoCloseable
Constructor and Description |
---|
RocksSharedLockHandle(int dbVersion,
LongAdder refCount)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getLockVersion()
Gets the version on the lock.
|
public RocksSharedLockHandle(int dbVersion, LongAdder refCount)
dbVersion
- The RocksDB version. This version is updated when the RocksDB
is restored or wiped out.refCount
- the ref count to decrement on closepublic int getLockVersion()
public void close()
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.