Package org.rocksdb
Class AbstractTransactionNotifier
- java.lang.Object
-
- org.rocksdb.AbstractNativeReference
-
- org.rocksdb.AbstractImmutableNativeReference
-
- org.rocksdb.RocksCallbackObject
-
- org.rocksdb.AbstractTransactionNotifier
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public abstract class AbstractTransactionNotifier extends RocksCallbackObject
Provides notification to the caller of SetSnapshotOnNextOperation when the actual snapshot gets created
-
-
Field Summary
-
Fields inherited from class org.rocksdb.RocksCallbackObject
nativeHandle_
-
Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTransactionNotifier()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddisposeInternal()Deletes underlying C++ TransactionNotifier pointer.protected voiddisposeInternal(long handle)protected longinitializeNative(long... nativeParameterHandles)Construct the Native C++ object which will callback to our object methodsabstract voidsnapshotCreated(Snapshot newSnapshot)Implement this method to receive notification when a snapshot is requested viaTransaction.setSnapshotOnNextOperation().-
Methods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Methods inherited from class org.rocksdb.AbstractNativeReference
dispose, finalize
-
-
-
-
Method Detail
-
snapshotCreated
public abstract void snapshotCreated(Snapshot newSnapshot)
Implement this method to receive notification when a snapshot is requested viaTransaction.setSnapshotOnNextOperation().- Parameters:
newSnapshot- the snapshot that has been created.
-
initializeNative
protected long initializeNative(long... nativeParameterHandles)
Description copied from class:RocksCallbackObjectConstruct the Native C++ object which will callback to our object methods- Specified by:
initializeNativein classRocksCallbackObject- Parameters:
nativeParameterHandles- An array of native handles for any parameter objects that are needed during construction- Returns:
- The native handle of the C++ object which will callback to us
-
disposeInternal
protected void disposeInternal()
Deletes underlying C++ TransactionNotifier pointer. Note that this function should be called only after all Transactions referencing the comparator are closed. Otherwise an undefined behavior will occur.- Overrides:
disposeInternalin classRocksCallbackObject
-
disposeInternal
protected final void disposeInternal(long handle)
-
-