Class RocksDBThrottler

    • Constructor Summary

      Constructors 
      Constructor Description
      RocksDBThrottler​(int allowedMaxOpenOperationsInParallel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.rocksdb.RocksDB open​(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
      Open RocksDB in read-write mode with provided column family descriptors and handlers.
      org.rocksdb.RocksDB openReadOnly​(org.rocksdb.Options options, java.lang.String dbPath, java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors, java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
      Open RocksDB in read-only mode with provided column family descriptors and handlers.
      protected org.rocksdb.RocksDB throttledOpen​(java.lang.String dbPath, RocksDBThrottler.RocksDBSupplier rocksDBSupplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RocksDBThrottler

        public RocksDBThrottler​(int allowedMaxOpenOperationsInParallel)
    • Method Detail

      • throttledOpen

        protected org.rocksdb.RocksDB throttledOpen​(java.lang.String dbPath,
                                                    RocksDBThrottler.RocksDBSupplier rocksDBSupplier)
                                             throws java.lang.InterruptedException,
                                                    org.rocksdb.RocksDBException
        Throws:
        java.lang.InterruptedException
        org.rocksdb.RocksDBException
      • openReadOnly

        public org.rocksdb.RocksDB openReadOnly​(org.rocksdb.Options options,
                                                java.lang.String dbPath,
                                                java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors,
                                                java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
                                         throws org.rocksdb.RocksDBException,
                                                java.lang.InterruptedException
        Open RocksDB in read-only mode with provided column family descriptors and handlers.
        Throws:
        org.rocksdb.RocksDBException
        java.lang.InterruptedException
      • open

        public org.rocksdb.RocksDB open​(org.rocksdb.Options options,
                                        java.lang.String dbPath,
                                        java.util.List<org.rocksdb.ColumnFamilyDescriptor> columnFamilyDescriptors,
                                        java.util.List<org.rocksdb.ColumnFamilyHandle> columnFamilyHandles)
                                 throws org.rocksdb.RocksDBException,
                                        java.lang.InterruptedException
        Open RocksDB in read-write mode with provided column family descriptors and handlers.
        Throws:
        org.rocksdb.RocksDBException
        java.lang.InterruptedException