Package org.rocksdb

Class AbstractTransactionNotifier

All Implemented Interfaces:
AutoCloseable

public abstract class AbstractTransactionNotifier extends RocksCallbackObject
Provides notification to the caller of SetSnapshotOnNextOperation when the actual snapshot gets created
  • Constructor Details

    • AbstractTransactionNotifier

      protected AbstractTransactionNotifier()
  • Method Details

    • snapshotCreated

      public abstract void snapshotCreated(Snapshot newSnapshot)
      Implement this method to receive notification when a snapshot is requested via Transaction.setSnapshotOnNextOperation().
      Parameters:
      newSnapshot - the snapshot that has been created.
    • initializeNative

      protected long initializeNative(long... nativeParameterHandles)
      Description copied from class: RocksCallbackObject
      Construct the Native C++ object which will callback to our object methods
      Specified by:
      initializeNative in class RocksCallbackObject
      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:
      disposeInternal in class RocksCallbackObject
    • disposeInternal

      protected final void disposeInternal(long handle)