ChristopherSchultz commented on a change in pull request #240: Added extension 
point for custom delta requests
URL: https://github.com/apache/tomcat/pull/240#discussion_r378902517
 
 

 ##########
 File path: java/org/apache/catalina/ha/session/DeltaSession.java
 ##########
 @@ -106,7 +106,15 @@ public DeltaSession(Manager manager) {
         super(manager);
         boolean recordAllActions = manager instanceof ClusterManagerBase &&
                 ((ClusterManagerBase)manager).isRecordAllActions();
-        deltaRequest = new DeltaRequest(getIdInternal(), recordAllActions);
+        deltaRequest = newDeltaRequest(getIdInternal(), recordAllActions);
+    }
+
+    protected DeltaRequest newDeltaRequest() {
+        return new DeltaRequest();
 
 Review comment:
   I might do:
   
   `return newDeltaRequest(null, false);`
   
   here instead of calling the constructor. This allows subclasses to simply 
override a single method. Or maybe just use the single method and pass-in 
`null/false` instead of having an overloaded no-arg method.

----------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to