Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zmarkan committed Feb 21, 2018
1 parent 85e61ab commit 6fb9b8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/pusher/client/PusherOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class PusherOptions {
private Authorizer authorizer;
private Proxy proxy = Proxy.NO_PROXY;
private int maxReconnectionAttempts = MAX_RECONNECTION_ATTEMPTS;
private int maxReconnectGabInSeconds = MAX_RECONNECT_GAP_IN_SECONDS;
private int maxReconnectGapInSeconds = MAX_RECONNECT_GAP_IN_SECONDS;

/**
* Gets whether an encrypted (SSL) connection should be used when connecting
Expand Down Expand Up @@ -201,12 +201,12 @@ public PusherOptions setMaxReconnectionAttempts(int maxReconnectionAttempts) {
/**
* The delay in two reconnection extends exponentially (1, 2, 4, .. seconds) This property sets the maximum in between two
* reconnection attempts.
* @param maxReconnectGabInSeconds
* @param maxReconnectGapInSeconds
* time in seconds of the maximum gab between two reconnection attempts, default = {@link #MAX_RECONNECT_GAP_IN_SECONDS} 30s
* @return this, for chaining
*/
public PusherOptions setMaxReconnectGabInSeconds(int maxReconnectGabInSeconds) {
this.maxReconnectGabInSeconds = maxReconnectGabInSeconds;
public PusherOptions setMaxReconnectGapInSeconds(int maxReconnectGapInSeconds) {
this.maxReconnectGapInSeconds = maxReconnectGapInSeconds;
return this;
}

Expand Down Expand Up @@ -260,7 +260,7 @@ public int getMaxReconnectionAttempts() {
* @return the maximum reconnection gap in seconds
*/
public int getMaxReconnectGapInSeconds() {
return maxReconnectGabInSeconds;
return maxReconnectGapInSeconds;
}

private static String readVersionFromProperties() {
Expand Down

0 comments on commit 6fb9b8b

Please sign in to comment.