narendly commented on a change in pull request #367: Add transient cache for 
CustomRestClient implementation
URL: https://github.com/apache/helix/pull/367#discussion_r309874991
 
 

 ##########
 File path: 
helix-rest/src/main/java/org/apache/helix/rest/client/CustomRestClientFactory.java
 ##########
 @@ -33,34 +33,37 @@
 public class CustomRestClientFactory {
   private static final Logger LOG = 
LoggerFactory.getLogger(CustomRestClientFactory.class);
 
-  private static CustomRestClient INSTANCE = null;
+  private static HttpClient HTTP_CLIENT_INSTANCE = null;
 
   private CustomRestClientFactory() {
   }
 
+  /**
+   * Not using singleton pattern because {@link CustomRestClientImpl} has a 
transient memory cache with lifecycle of one
 
 Review comment:
   The way the comment is written could be confusing because others may not 
know that this used to use the singleton pattern. I asked you to clarify 
because it wasn't self-explanatory.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to