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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
nativeHandle_ |
owningHandle_| 限定符 | 构造器和说明 |
|---|---|
protected |
RocksCallbackObject(long... nativeParameterHandles) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, isOwningHandleprotected abstract long initializeNative(long... nativeParameterHandles)
nativeParameterHandles - An array of native handles for any parameter
objects that are needed during constructionprotected void disposeInternal()