kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | a8b456b7755fc681906f84082cb961b0a5aa111697a2b545d9f0116baf6029bb |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:15 +02:00 |
| Committer | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-05-28 13:15 +02:00 |
| Parents | ac1c213ddb09 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/PoolingOptions.java +1 −1
| @@ -310,7 +310,7 @@ | ||
| 310 | 310 | * @throws IllegalArgumentException if the interval is negative. |
| 311 | 311 | */ |
| 312 | 312 | public PoolingOptions setHeartbeatIntervalSeconds(int heartbeatIntervalSeconds) { |
| 313 | - if (poolTimeoutMillis < 0) | |
| 313 | + if (heartbeatIntervalSeconds < 0) | |
| 314 | 314 | throw new IllegalArgumentException("Heartbeat interval must be positive"); |
| 315 | 315 | |
| 316 | 316 | this.heartbeatIntervalSeconds = heartbeatIntervalSeconds; |