public abstract class RocksCallbackObject extends AbstractImmutableNativeReference
RocksObject but varies
in its construction as it is designed for Java objects which have functions
which are called from C++ via JNI.
RocksCallbackObject is the base-class any RocksDB classes that acts as a
callback from some underlying underlying native C++ rocksdb object.
The use of RocksObject should always be preferred over
RocksCallbackObject if callbacks are not required.| Modifier and Type | Field and Description |
|---|---|
protected long |
nativeHandle_ |
owningHandle_| Modifier | Constructor and Description |
|---|---|
protected |
RocksCallbackObject(long... nativeParameterHandles) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disposeInternal()
Deletes underlying C++ native callback object pointer
|
protected abstract long |
initializeNative(long... nativeParameterHandles)
Construct the Native C++ object which will callback
to our object methods
|
close, disOwnNativeHandle, isOwningHandledispose, finalizeprotected RocksCallbackObject(long... nativeParameterHandles)
protected abstract long initializeNative(long... nativeParameterHandles)
nativeParameterHandles - An array of native handles for any parameter
objects that are needed during constructionprotected void disposeInternal()
disposeInternal in class AbstractImmutableNativeReferenceCopyright © 2021. All rights reserved.