@@ -12,7 +12,7 @@ public class PusherOptions {
1212
1313 private static final String SRC_LIB_DEV_VERSION = "@version@" ;
1414 private static final String LIB_DEV_VERSION = "0.0.0-dev" ;
15- public static final String LIB_VERSION = readVersionFromProperties ();
15+ public static final String LIB_VERSION = readVersionFromProperties ();
1616
1717 private static final String URI_SUFFIX = "?client=java-client&protocol=5&version=" + LIB_VERSION ;
1818 private static final String WS_SCHEME = "ws" ;
@@ -205,27 +205,27 @@ public PusherOptions setPongTimeout(final long pongTimeout) {
205205 /**
206206 * Number of reconnect attempts when websocket connection failed
207207 * @param maxReconnectionAttempts
208- * number of max reconnection attempts, default = {@link #MAX_RECONNECTION_ATTEMPTS} 6
208+ * number of max reconnection attempts, default = {@link #MAX_RECONNECTION_ATTEMPTS} 6
209209 * @return this, for chaining
210210 */
211211 public PusherOptions setMaxReconnectionAttempts (int maxReconnectionAttempts ) {
212212 this .maxReconnectionAttempts = maxReconnectionAttempts ;
213213 return this ;
214214 }
215215
216- /**
217- * The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two
218- * reconnection attempts.
219- * @param maxReconnectGapInSeconds
220- * time in seconds of the maximum gab between two reconnection attempts, default = {@link #MAX_RECONNECT_GAP_IN_SECONDS} 30s
221- * @return this, for chaining
222- */
223- public PusherOptions setMaxReconnectGapInSeconds (int maxReconnectGapInSeconds ) {
224- this .maxReconnectGapInSeconds = maxReconnectGapInSeconds ;
225- return this ;
226- }
227-
228- public long getPongTimeout () {
216+ /**
217+ * The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two
218+ * reconnection attempts.
219+ * @param maxReconnectGapInSeconds
220+ * time in seconds of the maximum gab between two reconnection attempts, default = {@link #MAX_RECONNECT_GAP_IN_SECONDS} 30s
221+ * @return this, for chaining
222+ */
223+ public PusherOptions setMaxReconnectGapInSeconds (int maxReconnectGapInSeconds ) {
224+ this .maxReconnectGapInSeconds = maxReconnectGapInSeconds ;
225+ return this ;
226+ }
227+
228+ public long getPongTimeout () {
229229 return pongTimeout ;
230230 }
231231
@@ -264,21 +264,21 @@ public Proxy getProxy() {
264264 return this .proxy ;
265265 }
266266
267- /**
268- * @return the maximum reconnection attempts
269- */
270- public int getMaxReconnectionAttempts () {
271- return maxReconnectionAttempts ;
272- }
273-
274- /**
275- * @return the maximum reconnection gap in seconds
276- */
277- public int getMaxReconnectGapInSeconds () {
278- return maxReconnectGapInSeconds ;
279- }
280-
281- private static String readVersionFromProperties () {
267+ /**
268+ * @return the maximum reconnection attempts
269+ */
270+ public int getMaxReconnectionAttempts () {
271+ return maxReconnectionAttempts ;
272+ }
273+
274+ /**
275+ * @return the maximum reconnection gap in seconds
276+ */
277+ public int getMaxReconnectGapInSeconds () {
278+ return maxReconnectGapInSeconds ;
279+ }
280+
281+ private static String readVersionFromProperties () {
282282 InputStream inStream = null ;
283283 try {
284284 final Properties p = new Properties ();
@@ -290,7 +290,7 @@ private static String readVersionFromProperties() {
290290 // from source then replace with a dev indicator. Otherwise the Pusher
291291 // Socket API will reject the connection.
292292 if (version .equals (SRC_LIB_DEV_VERSION )) {
293- version = LIB_DEV_VERSION ;
293+ version = LIB_DEV_VERSION ;
294294 }
295295
296296 if (version != null && version .length () > 0 ) {
0 commit comments