public abstract class RocksObject extends AbstractImmutableNativeReference
AbstractNativeReference which
has an immutable and therefore thread-safe reference to the underlying
native C++ RocksDB object.
RocksObject is the base-class of almost all RocksDB classes that have a
pointer to some underlying native C++ rocksdb object.
The use of RocksObject should always be preferred over
RocksMutableObject.
| Modifier and Type | Field and Description |
|---|---|
protected long |
nativeHandle_
An immutable reference to the value of the C++ pointer pointing to some
underlying native RocksDB C++ object.
|
owningHandle_| Modifier | Constructor and Description |
|---|---|
protected |
RocksObject(long nativeHandle) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeInternal()
Deletes underlying C++ object pointer.
|
protected abstract void |
disposeInternal(long handle) |
long |
getNativeHandle() |
close, disOwnNativeHandle, isOwningHandledispose, finalizeprotected final long nativeHandle_
protected void disposeInternal()
disposeInternal in class AbstractImmutableNativeReferenceprotected abstract void disposeInternal(long handle)
public long getNativeHandle()
Copyright © 2021. All rights reserved.