adam-markovics commented on code in PR #1328:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1328#discussion_r934659084


##########
libminifi/include/core/repository/VolatileContentRepository.h:
##########
@@ -68,55 +59,55 @@ class VolatileContentRepository :
       }
       master_list_.clear();
     }
+    stop();
   }
 
   /**
    * Initialize the volatile content repo
    * @param configure configuration
    */
-  virtual bool initialize(const std::shared_ptr<Configure> &configure);
-
-  /**
-   * Stop any thread associated with the volatile content repository.
-   */
-  virtual void stop();
+  bool initialize(const std::shared_ptr<Configure> &configure) override;
 
   /**
    * Creates writable stream.
    * @param claim resource claim
    * @return BaseStream shared pointer that represents the stream the consumer 
will write to.
    */
-  virtual std::shared_ptr<io::BaseStream> write(const minifi::ResourceClaim 
&claim, bool append);
+  std::shared_ptr<io::BaseStream> write(const minifi::ResourceClaim &claim, 
bool append) override;
 
   /**
    * Creates readable stream.
    * @param claim resource claim
    * @return BaseStream shared pointer that represents the stream from which 
the consumer will read..
    */
-  virtual std::shared_ptr<io::BaseStream> read(const minifi::ResourceClaim 
&claim);
+  std::shared_ptr<io::BaseStream> read(const minifi::ResourceClaim &claim) 
override;
 
-  virtual bool exists(const minifi::ResourceClaim &streamId);
+  bool exists(const minifi::ResourceClaim &streamId) override;
 
   /**
    * Closes the claim.
    * @return whether or not the claim is associated with content stored in 
volatile memory.
    */
-  virtual bool close(const minifi::ResourceClaim &claim) {
+  bool close(const minifi::ResourceClaim &claim) override {
     return remove(claim);
   }
 
   /**
    * Closes the claim.
    * @return whether or not the claim is associated with content stored in 
volatile memory.
    */
-  virtual bool remove(const minifi::ResourceClaim &claim);
+  bool remove(const minifi::ResourceClaim &claim) override;
+
+ private:
+  void run() override {
+  }
 
- protected:
-  virtual void start();
+  std::thread& getThread() override {
+    return thread_;
+  }

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to