hanicz commented on code in PR #1049: URL: https://github.com/apache/knox/pull/1049#discussion_r2132166761
########## gateway-provider-ha/src/main/java/org/apache/knox/gateway/ha/dispatch/SSEHaDispatch.java: ########## @@ -136,17 +149,100 @@ public void setActiveURL(String url) { activeURL.set(url); } + @Override + public int getMaxFailoverAttempts() { + return maxFailoverAttempts; + } + + @Override + public void setMaxFailoverAttempts(int maxFailoverAttempts) { + this.maxFailoverAttempts = maxFailoverAttempts; + } + + @Override + public int getFailoverSleep() { + return failoverSleep; + } + + @Override + public void setFailoverSleep(int failoverSleep) { + this.failoverSleep = failoverSleep; + } + + @Override + public void setFailoverNonIdempotentRequestEnabled(boolean enabled) { + this.failoverNonIdempotentRequestEnabled = enabled; + } + + @Override + public boolean isFailoverNonIdempotentRequestEnabled() { + return failoverNonIdempotentRequestEnabled; + } + + @Override + public void setNoFallbackEnabled(boolean enabled) { + this.noFallbackEnabled = enabled; + } + + @Override + public boolean isNoFallbackEnabled() { + return noFallbackEnabled; + } + Review Comment: Yes, that is the reason. We could move them into `ConfigurableDispatch` or `DefaultDispatch`. However I don't think we should add HA code to non HA Dispatches. -- 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: dev-unsubscr...@knox.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org