Interface GraphTransaction

    • Method Detail

      • txId

        long txId()
        事务id
      • success

        void success()
        将此事务标记为成功。调用 close() 之前调用此方法提交事务。
      • failure

        void failure()
        将此事务标记为失败。调用close() 之前调用此方法回滚事务。
      • close

        void close()
        关闭事务将完成它 - 如果事务标记为 success() 数据将被提交并持久化,如果事务标记为 failure() 它将回滚所有的操作。
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Graph
      • isOpen

        boolean isOpen()
        事务是否为开启状态