Interface KVDatabase

    • Method Detail

      • start

        void start()
        Start this instance. This method must be called prior to creating any transactions.

        This method is idempotent: if this instance is already started, nothing happens.

        Whether an instance that has been started and stopped can be restarted is implementation-dependent.

        Throws:
        IllegalStateException - if this instance is not properly configured
      • stop

        void stop()
        Stop this instance.

        This method is idempotent: if this instance has not been started, or is already stopped, nothing happens.

      • createTransaction

        KVTransaction createTransaction​(Map<String,​?> options)
        Create a new transaction with the specified options.
        Parameters:
        options - optional transaction options; may be null
        Returns:
        newly created transaction
        Throws:
        KVDatabaseException - if an unexpected error occurs
        IllegalStateException - if this instance is not start()ed