Created
May 6, 2014 13:31
-
-
Save jfarcand/42b53c4cbbb6ba7e9bfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java b/modules/cpr/src/main/java/org/atmosphere/interceptor/Heartbeatindex 38d8aeb..3e43968 100644 | |
--- a/modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java | |
+++ b/modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java | |
@@ -115,10 +115,15 @@ public class HeartbeatInterceptor extends AtmosphereInterceptorAdapter { | |
* | |
* @return the frequency in seconds | |
*/ | |
- public int getClientHeartbeatFrequencyInSeconds() { | |
+ public int clientHeartbeatFrequencyInSeconds() { | |
return clientHeartbeatFrequencyInSeconds; | |
} | |
+ public HeartbeatInterceptor clientHeartbeatFrequencyInSeconds(int clientHeartbeatFrequencyInSeconds) { | |
+ this.clientHeartbeatFrequencyInSeconds = clientHeartbeatFrequencyInSeconds; | |
+ return this; | |
+ } | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment